From 26fe1cf9fc9d99e2ae9f4add01bccd1938656712 Mon Sep 17 00:00:00 2001 From: Boris Staletic Date: Thu, 28 Mar 2024 23:08:32 +0100 Subject: tests: Avoid leaking buf in copy_file/test.c Signed-off-by: Fabian Groffen --- 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 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; } -- cgit v1.2.3-65-gdbad