summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/udp_encap.c
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-06-01 23:03:57 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-06-01 23:03:57 +0000
commit4c5d054584d613b6ffb682993f21f613ee01388b (patch)
treea6e93323039a0bd0be9b6147992684313939b3ba /sbin/isakmpd/udp_encap.c
parent74be8fbe16247c7731ba80cfb1ad86179b355483 (diff)
Fix memory leaks. OK hshoexer
Diffstat (limited to 'sbin/isakmpd/udp_encap.c')
-rw-r--r--sbin/isakmpd/udp_encap.c3
1 files changed, 2 insertions, 1 deletions
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;
}