From: Dave Hart Date: Sun, 3 Jan 2010 21:52:33 +0000 (+0000) Subject: [Bug 1451] CID 115: sntp leaks KoD entry when updating existing X-Git-Tag: NTP_4_2_7P8~2^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4cf5222241e3e0c646459e223518e0342473ab8;p=thirdparty%2Fntp.git [Bug 1451] CID 115: sntp leaks KoD entry when updating existing entry. bk: 4b4111a1hR1ongZfg3kL0j1RUSsMZw --- diff --git a/ChangeLog b/ChangeLog index a7f7d354c..434a1cddf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,10 @@ --- -* [Bug 1445] IRIX does not have -lcap or support linux capabilities. -* [Bug 1440] Update configure.ac to support kfreebsd. -* [Bug 1439] .texi generation must wait until after binary is linked. * [Bug 1127] Properly check the return of X590_verify() - missed one. +* [Bug 1439] .texi generation must wait until after binary is linked. +* [Bug 1440] Update configure.ac to support kfreebsd. +* [Bug 1445] IRIX does not have -lcap or support linux capabilities. +* [Bug 1451] CID 115: sntp leaks KoD entry when updating existing. --- (4.2.6p1-RC2) 2009/12/25 Released by Harlan Stenn diff --git a/sntp/kod_management.c b/sntp/kod_management.c index d7aca5200..878a2a0c1 100644 --- a/sntp/kod_management.c +++ b/sntp/kod_management.c @@ -73,6 +73,7 @@ add_entry( if (n < kod_db_cnt && 0 == strcmp(kod_db[n]->hostname, pke->hostname)) { kod_db[n]->timestamp = pke->timestamp; + free(pke); return; }