aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorClaudiu Beznea <[email protected]>2016-04-24 19:40:13 +0300
committerGreg Kroah-Hartman <[email protected]>2016-04-29 17:43:15 -0700
commite26eaf457989326a41eb58754f18333308cab321 (patch)
tree9852a683a7e82255860b1e22fefb7864544de300 /tools/perf/scripts/python
parent02e020480daf3a7726db493ff28f9391ff6bb9c4 (diff)
Staging: wlan-ng: memory allocated inside mkimage() is not freed if subsequent calls fails.
This patch frees memory allocated inside mkimage() in case mkimage() or any other subsequent calls inside prism2_fwapply() from prism2fw.c file fails. To fix this I introduces goto labels where the free operation is done in case some operations fails. After the introduction of goto labels has been done, in order to use the same return path, "return x" instuctions were replaced with "goto" instuctions. Signed-off-by: Claudiu Beznea <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions