aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Staletic <boris.staletic@protonmail.com>2024-03-28 21:30:40 +0100
committerFabian Groffen <grobian@gentoo.org>2024-03-29 11:58:25 +0100
commit06d9fb823e99cce2c66c5c4888b91538e66d166e (patch)
tree63121d08088d9278f38e986bf33ec192fac752cd /tests
parentqlop: Do not leak avgs array in predict mode (diff)
downloadportage-utils-06d9fb823e99cce2c66c5c4888b91538e66d166e.tar.gz
portage-utils-06d9fb823e99cce2c66c5c4888b91538e66d166e.tar.bz2
portage-utils-06d9fb823e99cce2c66c5c4888b91538e66d166e.zip
tests: avoid leaking buf after exiting the loop in atom_explode
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/atom_explode/test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/atom_explode/test.c b/tests/atom_explode/test.c
index b794d3b0..ff1c58d7 100644
--- a/tests/atom_explode/test.c
+++ b/tests/atom_explode/test.c
@@ -64,6 +64,7 @@ int main(int argc, char *argv[])
boom(a, buf);
atom_implode(a);
}
+ free(buf);
}
return EXIT_SUCCESS;