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

fs/squashfs: sqfs_read: fix dangling pointer dirs->entry



dirs->entry shouldn't be left dangling as it could be freed twice.
Signed-off-by: default avatarRichard Genoud <richard.genoud@posteo.net>
parent 35475f83
...@@ -1336,6 +1336,7 @@ int sqfs_read(const char *filename, void *buf, loff_t offset, loff_t len, ...@@ -1336,6 +1336,7 @@ int sqfs_read(const char *filename, void *buf, loff_t offset, loff_t len,
break; break;
free(dirs->entry); free(dirs->entry);
dirs->entry = NULL;
} }
if (ret) { if (ret) {
......
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