]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Fix the memory leak in rrdcached 572/head
authorAlexander Lozovoi <lozovoi604@gmail.com>
Tue, 13 Jan 2015 17:19:13 +0000 (20:19 +0300)
committerAlexander Lozovoi <lozovoi604@gmail.com>
Tue, 13 Jan 2015 17:19:13 +0000 (20:19 +0300)
src/rrd_daemon.c

index 8a21b18961e61598680f2d172b1e40fbeb64c0e5..9d2d0b8c1186342ed95ff3fe5d0732d074dd01a6 100644 (file)
@@ -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.");