Files
Mariusz Zaborski dc876a5bcd 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 <[email protected]>
Reported by:	clang/gcc ASAN
MFC after:	2 weeks

(cherry picked from commit b5d787d93b)
2021-07-06 19:58:08 +02:00
..
2021-07-06 19:58:08 +02:00
2018-11-27 17:00:47 +00:00
2021-05-07 10:16:03 +02:00
2019-12-19 04:58:11 +00:00
2019-07-19 15:07:31 +00:00