From: Florian Forster Date: Fri, 17 Nov 2017 14:37:57 +0000 (+0100) Subject: ovs_stats plugin: Add missing unlock. X-Git-Tag: collectd-5.8.0~4^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b4e3ffe8633858d01f00a8654823baa55ecf6288;p=collectd.git ovs_stats plugin: Add missing unlock. CID: 179234 --- diff --git a/src/ovs_stats.c b/src/ovs_stats.c index 538386ae..8309223b 100644 --- a/src/ovs_stats.c +++ b/src/ovs_stats.c @@ -332,6 +332,7 @@ static int ovs_stats_update_bridge(yajl_val bridge) { if (br == NULL) { br = (bridge_list_t *)calloc(1, sizeof(bridge_list_t)); if (!br) { + pthread_mutex_unlock(&g_stats_lock); ERROR("%s: Error allocating memory for bridge", plugin_name); return -1; }