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 f66739fb72dad56e11edc3e413cabad24b833ad1

Fix memory leaks in tests
No leaks in tests enables easier checking for leaks in main code.
Author: xaizek
Author date (UTC): 2015-07-09 16:00
Committer name: xaizek
Committer date (UTC): 2015-07-09 16:00
Parent(s): b89102ac771d510f30c36df9ff4dbbf8862a61e9
Signing key:
Tree: b93705ba5b0ebd8fd2fbb2b90061c757b45f4459
File Lines added Lines deleted
ChangeLog 2 0
tests/filetype/description.c 4 4
tests/misc/commands.c 3 0
File ChangeLog changed (mode: 100644) (index e770a24c7..fdd241b57)
94 94 Fixed crash/leak on processing of background jobs. Thanks to Christian Fixed crash/leak on processing of background jobs. Thanks to Christian
95 95 Fillion (a.k.a. cfillion). Fillion (a.k.a. cfillion).
96 96
97 Fixed several memory access errors and leaks.
98
97 99 0.7.8 to 0.8-beta 0.7.8 to 0.8-beta
98 100
99 101 Removed per-view last search pattern. Don't worry, you probably won't Removed per-view last search pattern. Don't worry, you probably won't
File tests/filetype/description.c changed (mode: 100644) (index cb85038ec..8db018d10)
... ... TEST(one_pattern)
18 18 assert_true(ft.list[0].command != NULL); assert_true(ft.list[0].command != NULL);
19 19 assert_string_equal("description", ft.list[0].description); assert_string_equal("description", ft.list[0].description);
20 20
21 free(ft.list);
21 ft_assoc_records_free(&ft);
22 22 } }
23 23
24 24 TEST(two_patterns) TEST(two_patterns)
 
... ... TEST(two_patterns)
34 34 assert_true(ft.list[0].command != NULL); assert_true(ft.list[0].command != NULL);
35 35 assert_string_equal("archives", ft.list[0].description); assert_string_equal("archives", ft.list[0].description);
36 36
37 free(ft.list);
37 ft_assoc_records_free(&ft);
38 38 } }
39 39
40 40 { {
 
... ... TEST(two_patterns)
44 44 assert_true(ft.list[0].command != NULL); assert_true(ft.list[0].command != NULL);
45 45 assert_string_equal("archives", ft.list[0].description); assert_string_equal("archives", ft.list[0].description);
46 46
47 free(ft.list);
47 ft_assoc_records_free(&ft);
48 48 } }
49 49 } }
50 50
 
... ... TEST(two_programs)
64 64 assert_string_equal(ft.list[1].command, "zipprog"); assert_string_equal(ft.list[1].command, "zipprog");
65 65 assert_string_equal(ft.list[1].description, "zip"); assert_string_equal(ft.list[1].description, "zip");
66 66
67 free(ft.list);
67 ft_assoc_records_free(&ft);
68 68 } }
69 69
70 70 /* vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 : */ /* vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 : */
File tests/misc/commands.c changed (mode: 100644) (index 873afbf8b..d3bd2a7bd)
... ... TEST(shell_invocation_works_in_udf)
176 176 assert_success(unlink("test-data/sandbox/out")); assert_success(unlink("test-data/sandbox/out"));
177 177
178 178 stats_update_shell_type("/bin/sh"); stats_update_shell_type("/bin/sh");
179
180 free(cfg.shell);
181 cfg.shell = NULL;
179 182 } }
180 183
181 184 /* vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 : */ /* vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 : */
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