projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fs/squashfs: sqfs_read: fix another memory leak
[platform/kernel/u-boot.git]
/
fs
/
squashfs
/
sqfs.c
diff --git
a/fs/squashfs/sqfs.c
b/fs/squashfs/sqfs.c
index
a71ada0
..
7d8e999
100644
(file)
--- a/
fs/squashfs/sqfs.c
+++ b/
fs/squashfs/sqfs.c
@@
-1462,6
+1462,8
@@
int sqfs_read(const char *filename, void *buf, loff_t offset, loff_t len,
}
data_offset += table_size;
+ free(data_buffer);
+ data_buffer = NULL;
}
free(finfo.blk_sizes);