diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-06-01 23:03:57 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-06-01 23:03:57 +0000 |
commit | 4c5d054584d613b6ffb682993f21f613ee01388b (patch) | |
tree | a6e93323039a0bd0be9b6147992684313939b3ba | |
parent | 74be8fbe16247c7731ba80cfb1ad86179b355483 (diff) |
Fix memory leaks. OK hshoexer
-rw-r--r-- | sbin/isakmpd/udp.c | 3 | ||||
-rw-r--r-- | sbin/isakmpd/udp_encap.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sbin/isakmpd/udp.c b/sbin/isakmpd/udp.c index 8f144df105a..8598be9d614 100644 --- a/sbin/isakmpd/udp.c +++ b/sbin/isakmpd/udp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp.c,v 1.88 2005/04/08 23:15:26 hshoexer Exp $ */ +/* $OpenBSD: udp.c,v 1.89 2005/06/01 23:03:56 cloder Exp $ */ /* $EOM: udp.c,v 1.57 2001/01/26 10:09:57 niklas Exp $ */ /* @@ -193,6 +193,7 @@ err: /* Already closed. */ t->s = -1; udp_remove(&t->transport); + free(t); } return 0; } diff --git a/sbin/isakmpd/udp_encap.c b/sbin/isakmpd/udp_encap.c index 9836eceb727..c0b7c211082 100644 --- a/sbin/isakmpd/udp_encap.c +++ b/sbin/isakmpd/udp_encap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_encap.c,v 1.15 2005/04/08 23:15:26 hshoexer Exp $ */ +/* $OpenBSD: udp_encap.c,v 1.16 2005/06/01 23:03:56 cloder Exp $ */ /* * Copyright (c) 1998, 1999, 2001 Niklas Hallqvist. All rights reserved. @@ -197,6 +197,7 @@ err: /* Already closed. */ t->s = -1; udp_remove(&t->transport); + free(t); } return 0; } |