commit | 0b8aa99d00b9193f1ac0d1686f9ca37ecc783522 | [log] [tgz] |
---|---|---|
author | Richard Genoud <richard.genoud@posteo.net> | Tue Nov 03 12:11:11 2020 +0100 |
committer | Tom Rini <trini@konsulko.com> | Thu Nov 19 09:45:49 2020 -0500 |
tree | ed850c710e6f452da145e80bbe4f4ac62445005c | |
parent | d3f8954970077c2db66c7f3049fca184e3ce178f [diff] [blame] |
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: Richard Genoud <richard.genoud@posteo.net>
diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index f4cac3e..13e64be 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c
@@ -1336,6 +1336,7 @@ break; free(dirs->entry); + dirs->entry = NULL; } if (ret) {