Commit 1391978
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 5e74544 commit 1391978
2 files changed
Lines changed: 2 additions & 0 deletions
| 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