Skip to content

Commit 59b2343

Browse files
author
Jyri Sarha
committed
cmocka: math: dct: Fix memory leaks
Fix memory leaks found by running the tests with Valgrind. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent bf7340d commit 59b2343

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • test/cmocka/src/math/dct

test/cmocka/src/math/dct/dct.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ static void dct_matrix_16_test(const int16_t *ref, int num_in, int num_out,
7171

7272
assert_true(error_rms < MATRIX_MULT_16_MAX_ERROR_RMS);
7373
assert_true(delta_max < MATRIX_MULT_16_MAX_ERROR_ABS);
74+
75+
mod_dct_free_16(&dummy, &dct);
7476
}
7577

7678
static void test_dct_matrix_16_test1(void **state)

0 commit comments

Comments
 (0)