From: Rafal Lesniak Date: Fri, 13 May 2011 15:15:54 +0000 (+0200) Subject: src/meta_data.c: Free a leaking mutex. X-Git-Tag: collectd-4.10.4~19 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e7a699dcfa222133a6a0cfac1132702852a6f3bd;p=collectd.git src/meta_data.c: Free a leaking mutex. This problem primarily manifested on FreeBSD but may well effect other systems as well. Thanks to Tomas Krasnican for reporting this problem. Signed-off-by: Florian Forster --- diff --git a/src/meta_data.c b/src/meta_data.c index 6a336c4b..aff3f8e5 100644 --- a/src/meta_data.c +++ b/src/meta_data.c @@ -215,6 +215,7 @@ void meta_data_destroy (meta_data_t *md) /* {{{ */ return; md_entry_free (md->head); + pthread_mutex_destroy (&md->lock); free (md); } /* }}} void meta_data_destroy */