Commit b5546d3
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 the .bss address while loading the module. There is no a
corresponding logic during module unloading. This causes a memory leak
because FW attempts to free memory under a 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 8f98a4e commit b5546d3
1 file changed
+8
-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 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
333 | 341 | | |
334 | 342 | | |
335 | 343 | | |
| |||
0 commit comments