zfs/lib
Brian Behlendorf 1074834f77 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 <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9732
2020-01-22 13:49:06 -08:00
..
libavl Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libefi cppcheck: (error) Memory leak: vtoc 2020-01-22 13:49:06 -08:00
libicp Add support for selecting encryption backend 2018-08-02 11:59:24 -07:00
libnvpair Use correct format string when printing int8 2020-01-22 13:49:03 -08:00
libshare Modify sharenfs=on default behavior 2020-01-22 13:49:03 -08:00
libspl Implement -A (ignore ASSERTs) for zdb 2020-01-22 13:49:04 -08:00
libtpool Fix typos in lib/ 2020-01-22 13:48:59 -08:00
libunicode Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
libuutil Update build system and packaging 2018-05-29 16:00:33 -07:00
libzfs Increase allowed 'special_small_blocks' maximum value 2020-01-22 13:49:05 -08:00
libzfs_core Use ZFS_DEV macro instead of literals 2019-09-25 11:27:48 -07:00
libzpool Implement -A (ignore ASSERTs) for zdb 2020-01-22 13:49:04 -08:00
libzutil Implement ZPOOL_IMPORT_UDEV_TIMEOUT_MS 2020-01-22 13:49:03 -08:00
Makefile.am Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00