mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 06:31:28 +01:00
fs/squashfs: sqfs_read: fix another memory leak
data_buffer was allocated in a loop and freed only once. Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
This commit is contained in:
parent
7ce9745cbe
commit
555459e793
@ -1459,6 +1459,8 @@ int sqfs_read(const char *filename, void *buf, loff_t offset, loff_t len,
|
|||||||
}
|
}
|
||||||
|
|
||||||
data_offset += table_size;
|
data_offset += table_size;
|
||||||
|
free(data_buffer);
|
||||||
|
data_buffer = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(finfo.blk_sizes);
|
free(finfo.blk_sizes);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user