Commit b495232
Jyri Sarha
cmocka: eq_iir and eq_fir: Fix test crash
Assign mod->stream_params to NULL aftere it is freed. If this is not
done comp_free() tries to free it again couple of lines later, when it
calls module_adapter_free(). Removing test_free(mod->stream_params)
does not fix the issue because cmocka framework provided test_alloc()
and test_free() are not equivalent to malloc() and free().
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>1 parent cf01b6c commit b495232
File tree
2 files changed
+2
-0
lines changed- test/cmocka/src/audio
- eq_fir
- eq_iir
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| |||
0 commit comments