Commit 5d8fae79163e94671956c99654abf48cf49757ba
Committed by
Marek Vasut
1 parent
2bf352f0c1
Exists in
v2017.01-smarct4x
and in
29 other branches
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>
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
drivers/dfu/dfu.c
-
mentioned in commit 9c2069
-
mentioned in commit feaa78
-
mentioned in commit feaa78
-
mentioned in commit feaa78
-
mentioned in commit feaa78
-
mentioned in commit feaa78
-
mentioned in commit feaa78
-
mentioned in commit feaa78
-
mentioned in commit feaa78
-
mentioned in commit feaa78
-
mentioned in commit feaa78
-
mentioned in commit feaa78
-
mentioned in commit feaa78
-
mentioned in commit feaa78
-
mentioned in commit feaa78