u-boot-brain/drivers/dfu
Peng Fan 5d8fae7916 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>
2016-05-06 20:06:56 +02:00
..
dfu_mmc.c dm: part: Rename some partition functions 2016-03-14 15:34:50 -06:00
dfu_nand.c dfu: nand: Verify writes 2015-03-30 23:24:38 -05:00
dfu_ram.c dfu: ram: fix number base of RAM entity parameters 2016-04-25 17:56:30 +02:00
dfu_sf.c dfu: dfu_sf: Pass duplicate devstr to parse_dev 2015-11-03 17:29:33 +01:00
dfu_tftp.c dfu: tftp: update: Provide tftp support for the DFU subsystem 2015-09-07 13:41:04 +02:00
dfu.c dfu: avoid memory leak 2016-05-06 20:06:56 +02:00
Kconfig dfu: tftp: Kconfig: Add Kconfig entry for dfu tftp feature 2015-09-07 13:41:05 +02:00
Makefile dfu: tftp: update: Provide tftp support for the DFU subsystem 2015-09-07 13:41:04 +02:00