From: Florian Forster Date: Wed, 15 Nov 2017 21:31:47 +0000 (+0100) Subject: src/daemon/meta_data.c: Fix double unlock. X-Git-Tag: collectd-5.8.0~1^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ec613f7fe32e45de07333a2de8343ea69ac474cd;p=collectd.git src/daemon/meta_data.c: Fix double unlock. CID: 179245 --- diff --git a/src/daemon/meta_data.c b/src/daemon/meta_data.c index 583d8196..76846904 100644 --- a/src/daemon/meta_data.c +++ b/src/daemon/meta_data.c @@ -737,7 +737,6 @@ int meta_data_as_string(meta_data_t *md, /* {{{ */ temp = md_strdup(actual); if (temp == NULL) { - pthread_mutex_unlock(&md->lock); ERROR("meta_data_as_string: md_strdup failed for key `%s'.", key); return (-ENOMEM); }