summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2013-05-03 13:57:47 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2013-05-03 13:57:47 +0000
commit579b51fc574dc41b79ef9eab2c7496e5ce84b9ec (patch)
tree8eed3ee1a794e14693c02e1d8401fb933584b6b8 /sys/uvm
parent3b49bded25a0e6390afd1120c38c5070ad0cf9a3 (diff)
fix mem leak in swapmount
pointed out by jsg@ ok tedu@
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_swap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c
index bcaba8410e4..cf377792e29 100644
--- a/sys/uvm/uvm_swap.c
+++ b/sys/uvm/uvm_swap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_swap.c,v 1.112 2013/04/17 16:22:24 florian Exp $ */
+/* $OpenBSD: uvm_swap.c,v 1.113 2013/05/03 13:57:46 florian Exp $ */
/* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */
/*
@@ -2022,6 +2022,7 @@ swapmount(void)
if (bdevvp(swap_dev, &vp)) {
free(sdp->swd_path, M_VMSWAP);
free(sdp, M_VMSWAP);
+ free(spp, M_VMSWAP);
return;
}