X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_daemon.c;h=0e95e903a97063aef0a64358c112d60c75b250db;hp=2a35ec2abe59cfc2f87a316a0e097c051879a98d;hb=eccb8f633c724cfff32a96bb036647006e2a5e56;hpb=ff4657f155a7acb054aaa702a7c2f610991bd0e9 diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 2a35ec2..0e95e90 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -924,9 +924,6 @@ static void *queue_thread_main (void *args __attribute__((unused))) /* {{{ */ pthread_cond_broadcast(&ci->flushed); pthread_mutex_unlock(&cache_lock); - rrd_free_ptrs((void ***) &values, &values_num); - free(file); - if (status == 0) { pthread_mutex_lock (&stats_lock); @@ -935,6 +932,9 @@ static void *queue_thread_main (void *args __attribute__((unused))) /* {{{ */ pthread_mutex_unlock (&stats_lock); } + rrd_free_ptrs((void ***) &values, &values_num); + free(file); + pthread_mutex_lock (&cache_lock); } pthread_mutex_unlock (&cache_lock);