commit: 26fe1cf9fc9d99e2ae9f4add01bccd1938656712
Author: Boris Staletic <boris.staletic <AT> protonmail <DOT> com>
AuthorDate: Thu Mar 28 22:08:32 2024 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Mar 29 10:58:26 2024 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=26fe1cf9
tests: Avoid leaking buf in copy_file/test.c
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
tests/copy_file/test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/copy_file/test.c b/tests/copy_file/test.c
index 4482237..aa0edaa 100644
--- a/tests/copy_file/test.c
+++ b/tests/copy_file/test.c
@@ -72,6 +72,7 @@ int main(int argc, char *argv[])
assert(buf != NULL);
memset(buf, 0xaf, len);
testone(buf, len);
+ free(buf);
return 0;
}