From 31ab24e0da477163774227f0e434f951e9e8c461 Mon Sep 17 00:00:00 2001 From: Alexander Lozovoi Date: Tue, 13 Jan 2015 20:19:13 +0300 Subject: [PATCH] Fix the memory leak in rrdcached --- src/rrd_daemon.c | 2 ++ 1 file changed, 2 insertions(+) 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."); -- 2.47.2