projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac0af6c
)
src/utils_ovs.c: Unlock pdb->mutex before calling ovs_db_callback_remove_all().
author
Florian Forster
<octo@collectd.org>
Fri, 17 Nov 2017 14:26:13 +0000
(15:26 +0100)
committer
Florian Forster
<octo@collectd.org>
Fri, 17 Nov 2017 14:26:13 +0000
(15:26 +0100)
CID: 179240
src/utils_ovs.c
patch
|
blob
|
history
diff --git
a/src/utils_ovs.c
b/src/utils_ovs.c
index
2087324
..
63cb94c
100644
(file)
--- a/
src/utils_ovs.c
+++ b/
src/utils_ovs.c
@@
-1268,6
+1268,8
@@
int ovs_db_destroy(ovs_db_t *pdb) {
ovs_db_ret = (-1);
}
+ pthread_mutex_unlock(&pdb->mutex);
+
/* unsubscribe callbacks */
ovs_db_callback_remove_all(pdb);
@@
-1276,7
+1278,6
@@
int ovs_db_destroy(ovs_db_t *pdb) {
close(pdb->sock);
/* release DB handler */
- pthread_mutex_unlock(&pdb->mutex);
pthread_mutex_destroy(&pdb->mutex);
sfree(pdb);
return ovs_db_ret;