From b4e3ffe8633858d01f00a8654823baa55ecf6288 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 17 Nov 2017 15:37:57 +0100 Subject: [PATCH] ovs_stats plugin: Add missing unlock. CID: 179234 --- src/ovs_stats.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.11.0