Commit db5625c
committed
module_adapter: Fix use after free in module_adapter_new_ext
Fix use after free in module_adapter_new_ext() by removing the dst access
after freeing mod. The dst points to a field inside the previously
allocated mod structure. The structure is freed on error so its fields do
not need to be cleared beforehand.
Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>1 parent 4870dfc commit db5625c
1 file changed
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | 337 | | |
342 | 338 | | |
343 | 339 | | |
| |||
0 commit comments