diff options
author | 2001-03-27 18:47:09 +0000 | |
---|---|---|
committer | 2001-03-27 18:47:09 +0000 | |
commit | 990feec7310b6bd362158fae227ea4c4f62eb5dc (patch) | |
tree | 01814115cdf0672ae4d89a202bde6d17add879f9 | |
parent | make dh group exchange more flexible, allow min and max group size, (diff) | |
download | wireguard-openbsd-990feec7310b6bd362158fae227ea4c4f62eb5dc.tar.xz wireguard-openbsd-990feec7310b6bd362158fae227ea4c4f62eb5dc.zip |
Plug one memory leak. Found with boehm-gc.
-rw-r--r-- | sbin/isakmpd/ike_auth.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/isakmpd/ike_auth.c b/sbin/isakmpd/ike_auth.c index cc3b07c9e8b..5f4421b3fad 100644 --- a/sbin/isakmpd/ike_auth.c +++ b/sbin/isakmpd/ike_auth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ike_auth.c,v 1.37 2001/01/27 15:39:54 ho Exp $ */ +/* $OpenBSD: ike_auth.c,v 1.38 2001/03/27 18:47:09 ho Exp $ */ /* $EOM: ike_auth.c,v 1.59 2000/11/21 00:21:31 angelos Exp $ */ /* @@ -213,7 +213,10 @@ ike_auth_get_key (int type, char *id, char *local_id, size_t *keylen) keyfile = privkeyfile; if (stat (keyfile, &sb) < 0) - goto ignorekeynote; + { + free (keyfile); + goto ignorekeynote; + } fd = open (keyfile, O_RDONLY, 0); if (fd < 0) |