]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fs/squashfs: sqfs_closedir: fix memory leak
authorRichard Genoud <richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:02 +0000 (12:11 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000 (09:45 -0500)
sqfs_dirs wasn't freed anywhere.

Reviewed-by: Joao Marcos Costa <jmcosta944@gmail.com>
Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
fs/squashfs/sqfs.c

index b94a9715205a2c50d121df5380018ba0a566509f..0ac922af9e7ddd0aba9d6a6b87a95314f152e400 100644 (file)
@@ -1573,4 +1573,5 @@ void sqfs_closedir(struct fs_dir_stream *dirs)
        free(sqfs_dirs->inode_table);
        free(sqfs_dirs->dir_table);
        free(sqfs_dirs->dir_header);
+       free(sqfs_dirs);
 }