diff options
| author | Wenwen Wang <wenwen@cs.uga.edu> | 2019-08-18 18:52:49 +0300 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-08-24 14:13:39 +0300 |
| commit | d83aef09aaa50bdafbb32981859128299abf32eb (patch) | |
| tree | faa7c1781810be5a58d71842bab57fe91be72c24 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 80107e764846a6f9b40fc2a78306329ed9052733 (diff) | |
| download | linux-d83aef09aaa50bdafbb32981859128299abf32eb.tar.xz | |
mtd: onenand_base: Fix a memory leak bug
In onenand_scan(), if CONFIG_MTD_ONENAND_VERIFY_WRITE is defined,
'this->verify_buf' is allocated through kzalloc(). However, it is not
deallocated in the following execution, if the allocation for
'this->oob_buf' fails, leading to a memory leak bug. To fix this issue,
free 'this->verify_buf' before returning the error.
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
