aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Staletic <boris.staletic@protonmail.com>2024-03-28 23:08:32 +0100
committerFabian Groffen <grobian@gentoo.org>2024-03-29 11:58:26 +0100
commit26fe1cf9fc9d99e2ae9f4add01bccd1938656712 (patch)
tree3e5cadeb58282230e76ca9754071a2b67f071158 /tests
parenttests: avoid leaking buf after exiting the loop in atom_explode (diff)
downloadportage-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.c1
1 files changed, 1 insertions, 0 deletions
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;
}