diff options
author | 2013-05-03 13:57:46 +0000 | |
---|---|---|
committer | 2013-05-03 13:57:46 +0000 | |
commit | 19c79d43053a85e6440c7de5b163403c53b4f15d (patch) | |
tree | dc6f07ca092e5fcd791e6f5a35d0959d49f40165 | |
parent | Fix resetting MB_CUR_MAX when switching locales away from a UTF-8 locale. (diff) | |
download | wireguard-openbsd-19c79d43053a85e6440c7de5b163403c53b4f15d.tar.xz wireguard-openbsd-19c79d43053a85e6440c7de5b163403c53b4f15d.zip |
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; } |