From 7badac7f975978ad4b4fb80d9bacbd7afe94ea81 Mon Sep 17 00:00:00 2001 From: TapTap Date: Mon, 14 Sep 2026 17:54:20 +0200 Subject: [PATCH] test(compression): free inherited Data in forked truncation test (valgrind) --- tests/test_compression.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_compression.c b/tests/test_compression.c index 063f060..b80b95b 100644 --- a/tests/test_compression.c +++ b/tests/test_compression.c @@ -295,9 +295,13 @@ static void test_data_decompress_truncated_frame_fails() { bool failed_cleanly = (out == NULL); data_destroy(out); data_destroy(compressed); + /* The child inherited `input` across fork(); free it before _exit so the + * valgrind CI job (which instruments forked children too) sees no leak. */ + data_destroy(input); _exit(failed_cleanly ? 0 : 1); } data_destroy(compressed); + data_destroy(input); _exit(2); } int status;