]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix nvlist array memory leak.
authorMariusz Zaborski <oshogbo@FreeBSD.org>
Sun, 17 Jul 2016 15:36:02 +0000 (15:36 +0000)
committerMariusz Zaborski <oshogbo@FreeBSD.org>
Sun, 17 Jul 2016 15:36:02 +0000 (15:36 +0000)
commit1b5503293922afcd29b7067b99d6b06c18629c9d
tree663336774be8629851acf947537946f398ff0de6
parent26dc4fcaa77315673536993f833a49ba6991d819
Fix nvlist array memory leak.

When we change nvl_array_next to NULL it means that we want to destroy or
take nvlist_array. The nvpair, which stores next nvlist of nvlist_array element
is no longer needed and can be freed.

Submitted by: Adam Starak <starak.adam@gmail.com>
MFC after: 1 week
sys/contrib/libnv/nvlist.c