Commit 1f32181
committed
audio: asrc: Fix heap double-free during teardown
Properly track allocation state in the ASRC component lifecycle
to prevent double-free of heap memory during module teardown in
ZTest environments.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 1e59ce2 commit 1f32181
1 file changed
Lines changed: 26 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | 318 | | |
320 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
321 | 323 | | |
322 | 324 | | |
323 | | - | |
324 | | - | |
325 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
326 | 334 | | |
| 335 | + | |
| 336 | + | |
327 | 337 | | |
328 | 338 | | |
329 | 339 | | |
| |||
862 | 872 | | |
863 | 873 | | |
864 | 874 | | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
871 | 886 | | |
872 | 887 | | |
873 | 888 | | |
| |||
0 commit comments