From 963bc7a03fa889227fac7c30a6b97772241dc777 Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Wed, 20 May 2015 17:48:22 +0000 Subject: [PATCH] Fix memory leak. Approved by: pjd (mentor) --- sys/kern/subr_nvlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/subr_nvlist.c b/sys/kern/subr_nvlist.c index 28995209cfae..de1972e42c59 100644 --- a/sys/kern/subr_nvlist.c +++ b/sys/kern/subr_nvlist.c @@ -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));