Commit 8592d21
committed
llext: fix memory leak in no-data case
If there is no .data section in a llext module, the base data address is
replaced with .bss address while loading the module. There is no
corresponding logic during module unloading. This causes memory leak
because FW attempts to free memory under NULL address while the .bss
memory remains allocated. This change adds the missing logic.
Signed-off-by: Wojciech Jablonski <wojciech.jablonski@intel.com>1 parent a32d983 commit 8592d21
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
323 | 325 | | |
324 | 326 | | |
325 | 327 | | |
| |||
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
| 335 | + | |
| 336 | + | |
333 | 337 | | |
334 | 338 | | |
335 | 339 | | |
| |||
0 commit comments