mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 14:08:45 +00:00
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>
This commit is contained in:
parent
35475f83a1
commit
d1d8d75f69
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue