projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce5436d
)
ovs_stats plugin: Add missing unlock.
author
Florian Forster
<octo@collectd.org>
Fri, 17 Nov 2017 14:37:57 +0000
(15:37 +0100)
committer
Florian Forster
<octo@collectd.org>
Fri, 17 Nov 2017 14:37:57 +0000
(15:37 +0100)
CID: 179234
src/ovs_stats.c
patch
|
blob
|
history
diff --git
a/src/ovs_stats.c
b/src/ovs_stats.c
index
538386a
..
8309223
100644
(file)
--- 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;
}