summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-03-11 16:56:12 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-03-11 16:56:12 +0000
commit01eec010699fb17fab1f9d2ec7b12f15330fd2b9 (patch)
tree2eee381bcfa95667c3fa44c4a3f39c8b829d69ae /sbin
parentf6101d3efe56e72008663e99c5f928528c011b7e (diff)
Fix a memleak.
ok ho@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/isakmp_cfg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/isakmpd/isakmp_cfg.c b/sbin/isakmpd/isakmp_cfg.c
index ab87fda0b0b..8788a02e518 100644
--- a/sbin/isakmpd/isakmp_cfg.c
+++ b/sbin/isakmpd/isakmp_cfg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isakmp_cfg.c,v 1.26 2003/12/04 21:13:35 miod Exp $ */
+/* $OpenBSD: isakmp_cfg.c,v 1.27 2004/03/11 16:56:11 hshoexer Exp $ */
/*
* Copyright (c) 2001 Niklas Hallqvist. All rights reserved.
@@ -356,6 +356,8 @@ cfg_initiator_send_ATTR (struct message *msg)
memcpy (attr + ISAKMP_ATTR_VALUE_OFF, sockaddr_addrdata (sa),
length);
+ free (sa);
+
off += ISAKMP_ATTR_SZ + length;
}