Commit b88b3a6
committed
Fix memory leak in FatIFileAccess error handling
A memory leak was discovered during fuzz testing:
- The async task object (Task) created in FatIFileAccess
was not being freed when FatGrowEof() returned an error
Changes:
- Moved the "Done" label to precede the "Task" check in
if-then branch
Signed-off-by: Pavel Naberezhnev <[email protected]>1 parent c8ae30a commit b88b3a6
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
| 322 | + | |
321 | 323 | | |
322 | 324 | | |
323 | 325 | | |
| |||
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
329 | | - | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
| |||
0 commit comments