Skip to content

Commit 9113ea4

Browse files
author
Jyri Sarha
committed
cmocka: module_adapter_test: Fix memory freeing error
Fix memory freeing error from module_adapter_test_free(). Use free_test_source() for sources, not free_test_sink(). Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent a0c95b6 commit 9113ea4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/cmocka/src/audio/module_adapter_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void module_adapter_test_free(struct processing_module_test_data *test_data)
7777
}
7878

7979
for (i = 0; i < test_data->num_sources; i++) {
80-
free_test_sink(test_data->sources[i]);
80+
free_test_source(test_data->sources[i]);
8181
test_free(test_data->input_buffers[i]);
8282
}
8383

0 commit comments

Comments
 (0)