Fix memory leak.

Approved by:	pjd (mentor)
This commit is contained in:
Mariusz Zaborski 2015-05-20 17:48:22 +00:00
parent 1acd888ff5
commit 963bc7a03f

View File

@ -838,6 +838,7 @@ nvlist_xunpack(const void *buf, size_t size, const int *fds, size_t nfds,
if (nvl->nvl_parent == NULL)
goto failed;
nvl = nvpair_nvlist(nvl->nvl_parent);
nvpair_free_structure(nvp);
continue;
default:
PJDLOG_ABORT("Invalid type (%d).", nvpair_type(nvp));