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));
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to