unit tests: fix a minor leak
authorMichal Bloch <m.bloch@samsung.com>
Mon, 13 Mar 2023 16:40:17 +0000 (17:40 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Thu, 23 Mar 2023 13:18:24 +0000 (14:18 +0100)
Change-Id: I021efcad0ee56fee4a1af8be568635a45ab6df7c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/tests/test_logger_compressed_storage.c

index 514261e..e926fc2 100644 (file)
@@ -468,6 +468,7 @@ static size_t get_good_size_miniz() {
        unsigned char *const buffer = malloc(out_size);
 
        mz_compress(buffer, &out_size, (const unsigned char *) good_compressible_input, sizeof good_compressible_input);
+       free(buffer);
        return out_size;
 }