summaryrefslogtreecommitdiffstats
path: root/test/lib/test-process-sync-stdout.c
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2016-05-04 11:22:57 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-05-06 13:57:30 +1000
commit87fa4885310b6c6b79e31d79d192ba9ea90cf236 (patch)
tree306127e71829d8e2119d5a9f31c941bf0ce9f185 /test/lib/test-process-sync-stdout.c
parent81f28af2bd94cc552aef1a7b959e4c6b84457ce7 (diff)
downloadtalos-petitboot-87fa4885310b6c6b79e31d79d192ba9ea90cf236.tar.gz
talos-petitboot-87fa4885310b6c6b79e31d79d192ba9ea90cf236.zip
lib/flash: fix resource leak in flash_setup_buffer() error paths
Some error paths in flash_setup_buffer() fail to free the flash_info struct or close the open ffs before they return. Change them to goto the cleanup code at the end. Separate the cleanup code into separate labels depending on whether we need to call ffs_close(), arch_flash_close() and talloc_free(). Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'test/lib/test-process-sync-stdout.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud