diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-06-10 16:55:38 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-06-10 16:55:38 +0000 |
commit | fb6bebb47c002ccf38949372a4aed6135e58c799 (patch) | |
tree | 60a76d7a8609421497011fd2c40bbcb25aae123b /sys | |
parent | 3be0d0939b61a78206efe3b66bf68bb48345fb8c (diff) |
Plug a memory leak in carp_clone_destroy()
From Patrick Latifi
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_carp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 7cca0f1741a..08b486f7622 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.58 2004/05/31 21:16:57 mpf Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.59 2004/06/10 16:55:37 mcbride Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -693,6 +693,7 @@ carp_clone_destroy(struct ifnet *ifp) bpfdetach(ifp); #endif if_detach(ifp); + free(sc, M_DEVBUF); return (0); } |