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);
pthread_mutex_unlock (&stats_lock);
}
+ rrd_free_ptrs((void ***) &values, &values_num);
+ free(file);
+
pthread_mutex_lock (&cache_lock);
}
pthread_mutex_unlock (&cache_lock);