[ntpsec commit] Fix a memory leak
Daniel Franke
dfranke at ntpsec.org
Wed Oct 21 18:47:30 UTC 2015
Module: ntpsec
Branch: master
Commit: a123591b6e57590a96234d9e4abbf1348c8bf0bc
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=a123591b6e57590a96234d9e4abbf1348c8bf0bc
Author: Daniel Fox Franke <dfoxfranke at gmail.com>
Date: Wed Oct 21 14:45:41 2015 -0400
Fix a memory leak
Ported from NTP classic [Sec 2909].
---
ntpd/ntp_crypto.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ntpd/ntp_crypto.c b/ntpd/ntp_crypto.c
index 998a6de..4a575d7 100644
--- a/ntpd/ntp_crypto.c
+++ b/ntpd/ntp_crypto.c
@@ -518,6 +518,7 @@ crypto_recv(
rval = XEVNT_ERR;
break;
}
+ free(peer->cmmd);
}
fp = emalloc(len);
memcpy(fp, ep, len);
More information about the vc
mailing list