Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/libnv/dist libnv: Free the data array for N...
details: https://anonhg.NetBSD.org/src/rev/83351dec4755
branches: trunk
changeset: 839271:83351dec4755
user: rmind <rmind%NetBSD.org@localhost>
date: Tue Feb 12 12:52:49 2019 +0000
description:
libnv: Free the data array for NV_TYPE_DESCRIPTOR_ARRAY case.
Obtained from FreeBSD rev 343987 by oshogbo@.
diffstat:
sys/external/bsd/libnv/dist/nvpair.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r e44b01dbe19f -r 83351dec4755 sys/external/bsd/libnv/dist/nvpair.c
--- a/sys/external/bsd/libnv/dist/nvpair.c Tue Feb 12 12:49:23 2019 +0000
+++ b/sys/external/bsd/libnv/dist/nvpair.c Tue Feb 12 12:52:49 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nvpair.c,v 1.4 2019/02/12 12:49:23 rmind Exp $ */
+/* $NetBSD: nvpair.c,v 1.5 2019/02/12 12:52:49 rmind Exp $ */
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
@@ -36,7 +36,7 @@
#ifdef __FreeBSD__
__FBSDID("$FreeBSD: head/sys/contrib/libnv/nvpair.c 335382 2018-06-19 18:43:02Z lwhsu $");
#else
-__RCSID("$NetBSD: nvpair.c,v 1.4 2019/02/12 12:49:23 rmind Exp $");
+__RCSID("$NetBSD: nvpair.c,v 1.5 2019/02/12 12:52:49 rmind Exp $");
#endif
#include <sys/param.h>
@@ -2099,6 +2099,7 @@
case NV_TYPE_DESCRIPTOR_ARRAY:
for (i = 0; i < nvp->nvp_nitems; i++)
close(((int *)(intptr_t)nvp->nvp_data)[i]);
+ nv_free((int *)(intptr_t)nvp->nvp_data);
break;
#endif
case NV_TYPE_NVLIST:
Home |
Main Index |
Thread Index |
Old Index