Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xen fix leak.
details: https://anonhg.NetBSD.org/src/rev/40118b57e7fd
branches: trunk
changeset: 332451:40118b57e7fd
user: christos <christos%NetBSD.org@localhost>
date: Sun Sep 21 16:53:38 2014 +0000
description:
fix leak.
diffstat:
sys/arch/xen/xen/privcmd.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 1ded5f5d981a -r 40118b57e7fd sys/arch/xen/xen/privcmd.c
--- a/sys/arch/xen/xen/privcmd.c Sun Sep 21 16:52:26 2014 +0000
+++ b/sys/arch/xen/xen/privcmd.c Sun Sep 21 16:53:38 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: privcmd.c,v 1.45 2013/11/06 06:23:15 mrg Exp $ */
+/* $NetBSD: privcmd.c,v 1.46 2014/09/21 16:53:38 christos Exp $ */
/*-
* Copyright (c) 2004 Christian Limpach.
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: privcmd.c,v 1.45 2013/11/06 06:23:15 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: privcmd.c,v 1.46 2014/09/21 16:53:38 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -360,8 +360,11 @@
}
error = privcmd_map_obj(vmm, va, maddr,
mentry.npages, mcmd->dom);
- if (error)
+ if (error) {
+ kmem_free(maddr,
+ sizeof(paddr_t) * mentry.npages);
return error;
+ }
}
break;
}
Home |
Main Index |
Thread Index |
Old Index