aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLion Kortlepel <[email protected]>2026-01-20 23:53:14 +0100
committerLion Kortlepel <[email protected]>2026-01-20 23:53:14 +0100
commita10d65b475018ddc715fb785dfd54595727a32df (patch)
treea649b9c32c547fed88194dc1b237be1223c869a1
parent80f59031c0306b20a26f54bf62b71f72fd5eaaaf (diff)
downloadtest-a10d65b475018ddc715fb785dfd54595727a32df.tar.zst
test-a10d65b475018ddc715fb785dfd54595727a32df.zip
fix: free static memory after use
this helps when you use valgrind on your tests
-rw-r--r--ls_test.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ls_test.h b/ls_test.h
index f9f4fe9..ab834b0 100644
--- a/ls_test.h
+++ b/ls_test.h
@@ -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;