aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorWenwen Wang <[email protected]>2019-08-18 21:46:04 -0500
committerMiquel Raynal <[email protected]>2019-08-24 13:13:41 +0200
commit86aa04f4c2215912fcca6728f2dcf174f7e31fc4 (patch)
tree83e2bf4ce79b3006cc722ae76ccc0ba57a9f6c43 /lib/debugobjects.c
parentd83aef09aaa50bdafbb32981859128299abf32eb (diff)
mtd: rawnand: Fix a memory leak bug
In nand_scan_bbt(), a temporary buffer 'buf' is allocated through vmalloc(). However, if check_create() fails, 'buf' is not deallocated, leading to a memory leak bug. To fix this issue, free 'buf' before returning the error. Signed-off-by: Wenwen Wang <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions