xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit dc6ce3dd3cb32b8918898608f000f428e34edcc1

Try to not leak memory in compare.c:put_file_id()
We don't do much with the error, just don't make leaks.

Clang-analyzer complained about this one.
Author: xaizek
Author date (UTC): 2017-05-26 14:45
Committer name: xaizek
Committer date (UTC): 2017-05-26 14:45
Parent(s): a9c9b6b699fa39ac3a5b9386f57f272bff5d0214
Signing key: 99DC5E4DB05F6BE2
Tree: 2ab01753560af3ce4417415e3548d306c7a81be2
File Lines added Lines deleted
src/compare.c 5 8
File src/compare.c changed (mode: 100644) (index 2aa89b624..db87ce151)
... ... put_file_id(trie_t *trie, const char path[], const char fingerprint[], int id,
837 837
838 838 /* Comparison by contents is the only one when we need to resolve fingerprint /* Comparison by contents is the only one when we need to resolve fingerprint
839 839 * conflicts. */ * conflicts. */
840 if(ct == CT_CONTENTS)
841 {
842 record->path = strdup(path);
843 }
844 else
840 record->path = (ct == CT_CONTENTS ? strdup(path) : NULL);
841
842 if(trie_set(trie, fingerprint, record) < 0)
845 843 { {
846 record->path = NULL;
844 free(record->path);
845 free(record);
847 846 } }
848
849 trie_set(trie, fingerprint, record);
850 847 } }
851 848
852 849 /* Frees list of compare entries. Implements data free function for /* Frees list of compare entries. Implements data free function for
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master