rrdtool: release another lock on error
[collectd.git] / src / meta_data.c
index 48dcabc..b6483e8 100644 (file)
@@ -250,7 +250,6 @@ void meta_data_destroy (meta_data_t *md) /* {{{ */
   if (md == NULL)
     return;
 
-  pthread_mutex_destroy(&md->lock);
   md_entry_free (md->head);
   pthread_mutex_destroy (&md->lock);
   free (md);