Commit e756877d by Patrick Steinhardt

tests: nsec: correctly free nsec_path

git_buf_clear does not free allocated memory associated with a
git_buf. Use `git_buf_free` instead to correctly free its memory
and plug the memory leak.
parent 2ba9a0dd
...@@ -56,7 +56,7 @@ static bool should_expect_nsecs(void) ...@@ -56,7 +56,7 @@ static bool should_expect_nsecs(void)
p_unlink(nsec_path.ptr); p_unlink(nsec_path.ptr);
git_buf_clear(&nsec_path); git_buf_free(&nsec_path);
return expect; return expect;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment