summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/message.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-03-10 16:10:58 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-03-10 16:10:58 +0000
commitfaa61af836cd88d4496c2de4ad459e22f916026a (patch)
treebbd743a59aa2880129bb8d1fdea075979555a0f7 /sbin/isakmpd/message.c
parentca9bc431e47f19584636a3665e756a609163e145 (diff)
Plug up memory leak.
ok ho@
Diffstat (limited to 'sbin/isakmpd/message.c')
-rw-r--r--sbin/isakmpd/message.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/isakmpd/message.c b/sbin/isakmpd/message.c
index 5925d2f7cd0..1d814a5467b 100644
--- a/sbin/isakmpd/message.c
+++ b/sbin/isakmpd/message.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: message.c,v 1.67 2004/03/10 11:17:38 hshoexer Exp $ */
+/* $OpenBSD: message.c,v 1.68 2004/03/10 16:10:57 hshoexer Exp $ */
/* $EOM: message.c,v 1.156 2000/10/10 12:36:39 provos Exp $ */
/*
@@ -1719,6 +1719,9 @@ message_drop (struct message *msg, int notify, struct proto *proto,
address ? address : "<unknown>", htons (port),
constant_name (isakmp_notify_cst, notify));
+ if (address)
+ free (address);
+
/* If specified, return a notification. */
if (notify)
message_send_notification (msg, msg->isakmp_sa, notify, proto, incoming);