summaryrefslogtreecommitdiff
path: root/fs/squashfs
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@posteo.net>2020-11-03 12:11:02 +0100
committerTom Rini <trini@konsulko.com>2020-11-19 09:45:49 -0500
commit87d11e08e4792b3d188143972ba3a1651a52beee (patch)
treeae89cbb2e7097d4b48b512bbce22f2fb77550669 /fs/squashfs
parentea1b1651c6a8db2b7f889bfe8dd796a59af7e0fe (diff)
downloadu-boot-87d11e08e4792b3d188143972ba3a1651a52beee.tar.gz
u-boot-87d11e08e4792b3d188143972ba3a1651a52beee.tar.bz2
u-boot-87d11e08e4792b3d188143972ba3a1651a52beee.zip
fs/squashfs: sqfs_closedir: fix memory leak
sqfs_dirs wasn't freed anywhere. Reviewed-by: Joao Marcos Costa <jmcosta944@gmail.com> Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
Diffstat (limited to 'fs/squashfs')
-rw-r--r--fs/squashfs/sqfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c
index b94a971520..0ac922af9e 100644
--- a/fs/squashfs/sqfs.c
+++ b/fs/squashfs/sqfs.c
@@ -1573,4 +1573,5 @@ void sqfs_closedir(struct fs_dir_stream *dirs)
free(sqfs_dirs->inode_table);
free(sqfs_dirs->dir_table);
free(sqfs_dirs->dir_header);
+ free(sqfs_dirs);
}