Fix memory leak.
Approved by: pjd (mentor)
This commit is contained in:
parent
1acd888ff5
commit
963bc7a03f
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user