diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2013-05-03 13:57:47 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2013-05-03 13:57:47 +0000 |
commit | 579b51fc574dc41b79ef9eab2c7496e5ce84b9ec (patch) | |
tree | 8eed3ee1a794e14693c02e1d8401fb933584b6b8 | |
parent | 3b49bded25a0e6390afd1120c38c5070ad0cf9a3 (diff) |
fix mem leak in swapmount
pointed out by jsg@
ok tedu@
-rw-r--r-- | sys/uvm/uvm_swap.c | 3 |
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; } |