diff options
author | Peng Fan <van.freenix@gmail.com> | 2016-05-03 10:24:52 +0800 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2016-05-06 20:06:56 +0200 |
commit | 5d8fae79163e94671956c99654abf48cf49757ba (patch) | |
tree | e3da0f8e08b8a27a097bfae31c694eb32dba5d67 /disk/part_mac.c | |
parent | 2bf352f0c1b7f58d4610bc0777e8febbd2dfd5ff (diff) | |
download | talos-obmc-uboot-5d8fae79163e94671956c99654abf48cf49757ba.tar.gz talos-obmc-uboot-5d8fae79163e94671956c99654abf48cf49757ba.zip |
dfu: avoid memory leak
When dfu_fill_entity fail, need to free dfu to avoid memory leak.
Reported by Coverity:
"
Resource leak (RESOURCE_LEAK)
leaked_storage: Variable dfu going out of scope leaks the storage
it points to.
"
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: "Łukasz Majewski" <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Diffstat (limited to 'disk/part_mac.c')
0 files changed, 0 insertions, 0 deletions