From: Alexander Lozovoi Date: Tue, 13 Jan 2015 17:19:13 +0000 (+0300) Subject: Fix the memory leak in rrdcached X-Git-Tag: v1.5.0-rc2~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31ab24e0da477163774227f0e434f951e9e8c461;p=thirdparty%2Frrdtool-1.x.git Fix the memory leak in rrdcached --- diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 8a21b189..9d2d0b8c 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -3587,6 +3587,8 @@ static void *listen_thread_main (void UNUSED(*args)) /* {{{ */ status = pthread_create (&tid, &attr, connection_thread_main, client_sock); + pthread_attr_destroy (&attr); + if (status != 0) { RRDD_LOG (LOG_ERR, "listen_thread_main: pthread_create failed.");