Blob Blame History Raw
commit d7cd5e186034340402f1393e0813c7d2b14ea6ca
Author:  <jnperlin@hydra.localnet>
Date:   Mon Sep 28 18:22:06 2015 +0200

    [Bug 2909] - Slow memory leak in CRYPTO_ASSOC
     - added missing call to 'free()' in ntp_crypto.c.

diff --git a/ntpd/ntp_crypto.c b/ntpd/ntp_crypto.c
index e9cd6c2..a7b693f 100644
--- a/ntpd/ntp_crypto.c
+++ b/ntpd/ntp_crypto.c
@@ -508,6 +508,7 @@ crypto_recv(
 					rval = XEVNT_ERR;
 					break;
 				}
+				free(peer->cmmd); /* will be set again! */
 			}
 			fp = emalloc(len);
 			memcpy(fp, ep, len);