diff options
| author | Lion Kortlepel <[email protected]> | 2026-01-20 23:53:14 +0100 |
|---|---|---|
| committer | Lion Kortlepel <[email protected]> | 2026-01-20 23:53:14 +0100 |
| commit | a10d65b475018ddc715fb785dfd54595727a32df (patch) | |
| tree | a649b9c32c547fed88194dc1b237be1223c869a1 /ls_test.h | |
| parent | 80f59031c0306b20a26f54bf62b71f72fd5eaaaf (diff) | |
| download | test-a10d65b475018ddc715fb785dfd54595727a32df.tar.zst test-a10d65b475018ddc715fb785dfd54595727a32df.zip | |
fix: free static memory after use
this helps when you use valgrind on your tests
Diffstat (limited to 'ls_test.h')
| -rw-r--r-- | ls_test.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -278,6 +278,7 @@ static int ls_test_main(int argc, char** argv) { end: fprintf(stderr, "%d succeeded, %d failed, %d total\n", lst_ok, lst_fail, lst_ok + lst_fail); + free(lst_funcs); if (lst_fail > 0) { return 1; |
