diff options
author | aarya <aarya.chaumal@gmail.com> | 2022-03-10 08:28:55 +0530 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2022-03-25 00:57:26 +0000 |
commit | caa0335114a817a69b43e5bc32ec9a5c2c65c896 (patch) | |
tree | c05f45a406fcafa7a4463f391379e668191bc3ad /spi.c | |
parent | 1b1066e2d5db21167394e0d40dfe5a0d370c8852 (diff) | |
download | flashrom-caa0335114a817a69b43e5bc32ec9a5c2c65c896.tar.gz flashrom-caa0335114a817a69b43e5bc32ec9a5c2c65c896.tar.bz2 flashrom-caa0335114a817a69b43e5bc32ec9a5c2c65c896.zip |
pony_spi.c: Fix memory leak in function pony_init_spi
The issue was found by running scan-build. Memory leak was caused as
data variable wasn't deallocated in some error cases where the
function returned without deallocating it. After making the change, the
issue no longer appeared in scan-build.
Change-Id: I7910db94f63693e7f131836d4963e88cfdbec301
Signed-off-by: Aarya Chaumal <aarya.chaumal@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/62724
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'spi.c')
0 files changed, 0 insertions, 0 deletions