Commit fb24392
committed
Fix mapped file leak on invalid avmpack open
The generic_unix invalid-pack rejection in sys_open_avm_from_file
returned without releasing the mapping, leaking it and its file
descriptor. Pre-existing, but truncated packs now take this path.
Signed-off-by: Davide Bettio <davide@uninstall.it>1 parent e211a5b commit fb24392
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
439 | 440 | | |
440 | 441 | | |
441 | 442 | | |
| |||
0 commit comments