fs/squashfs: sqfs_read_inode_table: fix dangling pointer

inode_table should not be left dangling as it may be freed in sqfs_opendir

Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
This commit is contained in:
Richard Genoud authored and Tom Rini committed 2020-11-19 09:45:49 -05:00
1 parent cd54591afd
commit 4c83d27557
1 file changed
+1
+1
View File
@@ -731,6 +731,7 @@ static int sqfs_read_inode_table(unsigned char **inode_table)
src_table, src_len);
if (ret) {
free(*inode_table);
*inode_table = NULL;
goto free_itb;
}