summaryrefslogtreecommitdiffstats
path: root/config/lib-link.m4
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2019-12-16 10:40:29 -0800
committerBrian Behlendorf <[email protected]>2019-12-18 17:25:04 -0800
commitfe20400db5564d4478fb039e773dd43c1f546d7b (patch)
tree5824b790b76e902174ce2e6410ab335c47aed8a0 /config/lib-link.m4
parentabfdb836079410d73ce0ee25fb4e8aec7e7c59ae (diff)
cppcheck: (error) Memory leak: vtoc
Resolve the reported memory leak by using a dedicated local vptr variable to store the pointer reported by calloc(). Only assign the passed **vtoc function argument on success, in all other cases vptr is freed. [lib/libefi/rdwr_efi.c:403]: (error) Memory leak: vtoc [lib/libefi/rdwr_efi.c:422]: (error) Memory leak: vtoc [lib/libefi/rdwr_efi.c:440]: (error) Memory leak: vtoc [lib/libefi/rdwr_efi.c:454]: (error) Memory leak: vtoc [lib/libefi/rdwr_efi.c:470]: (error) Memory leak: vtoc Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #9732
Diffstat (limited to 'config/lib-link.m4')
0 files changed, 0 insertions, 0 deletions