diff options
author | Boris Staletic <boris.staletic@protonmail.com> | 2024-03-28 23:08:32 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2024-03-29 11:58:26 +0100 |
commit | 26fe1cf9fc9d99e2ae9f4add01bccd1938656712 (patch) | |
tree | 3e5cadeb58282230e76ca9754071a2b67f071158 /tests | |
parent | tests: avoid leaking buf after exiting the loop in atom_explode (diff) | |
download | portage-utils-26fe1cf9fc9d99e2ae9f4add01bccd1938656712.tar.gz portage-utils-26fe1cf9fc9d99e2ae9f4add01bccd1938656712.tar.bz2 portage-utils-26fe1cf9fc9d99e2ae9f4add01bccd1938656712.zip |
tests: Avoid leaking buf in copy_file/test.c
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/copy_file/test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/copy_file/test.c b/tests/copy_file/test.c index 44822378..aa0edaaa 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; } |