Commit 4c83d275 authored by Richard Genoud's avatar Richard Genoud Committed by Tom Rini
Browse files

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: default avatarRichard Genoud <richard.genoud@posteo.net>
parent cd54591a
...@@ -731,6 +731,7 @@ static int sqfs_read_inode_table(unsigned char **inode_table) ...@@ -731,6 +731,7 @@ static int sqfs_read_inode_table(unsigned char **inode_table)
src_table, src_len); src_table, src_len);
if (ret) { if (ret) {
free(*inode_table); free(*inode_table);
*inode_table = NULL;
goto free_itb; goto free_itb;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment