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 @@ -203,6 +203,9 @@ static int teardown_test_case(void **state)
203203 struct test_data * td = * ((struct test_data * * )state );
204204 int i ;
205205
206+ rfree (td -> mod -> input_buffers );
207+ rfree (td -> mod -> output_buffers );
208+
206209 for (i = 0 ; i < MUX_MAX_STREAMS ; ++ i )
207210 free_test_source (td -> sources [i ]);
208211
@@ -347,8 +350,10 @@ int main(void)
347350 cmocka_set_message_output (CM_OUTPUT_TAP );
348351 ret = cmocka_run_group_tests (tests , setup_group , NULL );
349352
350- for (ti = 0 ; ti < ARRAY_SIZE (valid_formats ) * ARRAY_SIZE (masks ); ti ++ )
353+ for (ti = 0 ; ti < ARRAY_SIZE (valid_formats ) * ARRAY_SIZE (masks ); ti ++ ) {
351354 free (tests [ti ].initial_state );
355+ free ((void * )tests [ti ].name );
356+ }
352357
353358 return ret ;
354359}
You can’t perform that action at this time.
0 commit comments