svn commit: r283158 - head/sys/kern
Mariusz Zaborski
oshogbo at FreeBSD.org
Wed May 20 17:48:23 UTC 2015
Author: oshogbo
Date: Wed May 20 17:48:22 2015
New Revision: 283158
URL: https://svnweb.freebsd.org/changeset/base/283158
Log:
Fix memory leak.
Approved by: pjd (mentor)
Modified:
head/sys/kern/subr_nvlist.c
Modified: head/sys/kern/subr_nvlist.c
==============================================================================
--- head/sys/kern/subr_nvlist.c Wed May 20 17:47:01 2015 (r283157)
+++ head/sys/kern/subr_nvlist.c Wed May 20 17:48:22 2015 (r283158)
@@ -838,6 +838,7 @@ nvlist_xunpack(const void *buf, size_t s
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));
More information about the svn-src-head
mailing list