File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
test/cmocka/src/audio/mux Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,9 @@ static int teardown_test_case(void **state)
188188 struct test_data * td = * ((struct test_data * * )state );
189189 int i ;
190190
191+ rfree (td -> mod -> input_buffers );
192+ rfree (td -> mod -> output_buffers );
193+
191194 free_test_source (td -> source );
192195
193196 for (i = 0 ; i < MUX_MAX_STREAMS ; ++ i )
@@ -339,8 +342,10 @@ int main(void)
339342 cmocka_set_message_output (CM_OUTPUT_TAP );
340343 ret = cmocka_run_group_tests (tests , setup_group , NULL );
341344
342- for (ti = 0 ; ti < ARRAY_SIZE (valid_formats ) * ARRAY_SIZE (masks ); ti ++ )
345+ for (ti = 0 ; ti < ARRAY_SIZE (valid_formats ) * ARRAY_SIZE (masks ); ti ++ ) {
343346 free (tests [ti ].initial_state );
347+ free ((void * )tests [ti ].name );
348+ }
344349
345350 return ret ;
346351}
You can’t perform that action at this time.
0 commit comments