From 7d8ff1274e491d38be9fb279c909f0721a4afb7e Mon Sep 17 00:00:00 2001 From: doug Date: Fri, 22 Aug 2014 07:59:52 +0000 Subject: [PATCH] fix memory leak in isakmpd ok gerhard@ (also corrected first version) --- sbin/isakmpd/ike_phase_1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/isakmpd/ike_phase_1.c b/sbin/isakmpd/ike_phase_1.c index 28167567bc9..6402b48f7a9 100644 --- a/sbin/isakmpd/ike_phase_1.c +++ b/sbin/isakmpd/ike_phase_1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ike_phase_1.c,v 1.72 2010/06/29 19:50:16 reyk Exp $ */ +/* $OpenBSD: ike_phase_1.c,v 1.73 2014/08/22 07:59:52 doug Exp $ */ /* $EOM: ike_phase_1.c,v 1.31 2000/12/11 23:47:56 niklas Exp $ */ /* @@ -717,6 +717,7 @@ ike_phase_1_post_exchange_KE_NONCE(struct message *msg) key = malloc(keylen); if (!key) { /* XXX - Notify peer. */ + prf_free(prf); log_error("ike_phase_1_post_exchange_KE_NONCE: " "malloc (%d) failed", keylen); return -1; -- 2.20.1