freebsd-nq/lib/libnv
Mariusz Zaborski b5d787d93b libnv: fix memory leaks
nvpair_create_stringv: free the temporary string; this fix affects
nvlist_add_stringf() and nvlist_add_stringv().

nvpair_remove_nvlist_array (NV_TYPE_NVLIST_ARRAY case): free the chain
of nvpairs (as resetting it prevents nvlist_destroy() from freeing it).
Note: freeing the chain in nvlist_destroy() is not sufficient, because
it would still leak through nvlist_take_nvlist_array().  This affects
all nvlist_*_nvlist_array() use

Submitted by:	Mindaugas Rasiukevicius <rmind@netbsd.org>
Reported by:	clang/gcc ASAN
MFC after:	2 weeks
2019-02-10 23:28:55 +00:00
..
tests libnv: fix memory leaks 2019-02-10 23:28:55 +00:00
common_impl.h Ensure that libnv can be used when kern.trap_enotcap=1. 2018-11-13 20:07:55 +00:00
Makefile libnv: Remove -I${SRCTOP}/sys 2018-08-09 20:29:44 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
msgio.c Allow bootstrapping libnv on macOS and Linux 2018-12-14 21:16:04 +00:00
msgio.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00