From: Dave Hart Date: Sun, 17 Apr 2011 08:10:39 +0000 (+0000) Subject: Fix leak in refclock_datum.c start failure path. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d400003f3a67f7e28040e987fb74873636a12de7;p=thirdparty%2Fntp.git Fix leak in refclock_datum.c start failure path. bk: 4daaa07fZuhctUXntH89Lk7BJcIeXw --- diff --git a/ChangeLog b/ChangeLog index c601ebf4a7..4c137bb25d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ * [Bug 1887] DNS fails on 4.2.7p153 using threads. +* Fix leak in refclock_datum.c start failure path. (4.2.7p153) 2011/04/16 Released by Harlan Stenn * A few more Coverity Scan cleanups. (4.2.7p152) 2011/04/15 Released by Harlan Stenn diff --git a/ntpd/refclock_datum.c b/ntpd/refclock_datum.c index abd18f887d..5476525688 100644 --- a/ntpd/refclock_datum.c +++ b/ntpd/refclock_datum.c @@ -278,6 +278,7 @@ datum_pts_start( if (rc < 0) { msyslog(LOG_ERR, "Datum_PTS: tcsetattr(\"%s\") failed: %m", DATUM_DEV); close(datum_pts->PTS_fd); + free(datum_pts); return 0; }