commit | 7584465d9035c1a05558c80741d535b9947bb73c | [log] [tgz] |
---|---|---|
author | Richard Genoud <richard.genoud@posteo.net> | Tue Nov 03 12:11:14 2020 +0100 |
committer | Tom Rini <trini@konsulko.com> | Thu Nov 19 09:45:49 2020 -0500 |
tree | 0fa67efb3715ef112cc9f0ac979f90bcfd767446 | |
parent | 84a5f579d3da8e787312413d8018982a3429b5ca [diff] [blame] |
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>
diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index a9e803c..cfea313 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c
@@ -1459,6 +1459,8 @@ } data_offset += table_size; + free(data_buffer); + data_buffer = NULL; } free(finfo.blk_sizes);