summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/jffs2/src/nodelist.c
diff options
context:
space:
mode:
authorWenwen Wang <wenwen@cs.uga.edu>2019-08-19 16:55:04 -0500
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-06-20 13:25:32 +0200
commite1a5720264babaadabdbe956310acd845f2100e1 (patch)
tree5a735f777df69b0c1708dbddfca52b578c328aaa /cpukit/libfs/src/jffs2/src/nodelist.c
parentjffs2: Remove jffs2_gc_fetch_page and jffs2_gc_release_page (diff)
downloadrtems-e1a5720264babaadabdbe956310acd845f2100e1.tar.bz2
jffs2: Fix memory leak in jffs2_scan_eraseblock() error path
In jffs2_scan_eraseblock(), 'sumptr' is allocated through kmalloc() if 'sumlen' is larger than 'buf_size'. However, it is not deallocated in the following execution if jffs2_fill_scan_buf() fails, leading to a memory leak bug. To fix this issue, free 'sumptr' before returning the error. Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions