projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f6d3ce
)
write_graphite plugin: Unlock mutex before destroying it.
author
Florian Forster
<octo@collectd.org>
Mon, 20 Nov 2017 10:18:32 +0000
(11:18 +0100)
committer
Florian Forster
<octo@collectd.org>
Mon, 20 Nov 2017 10:18:32 +0000
(11:18 +0100)
CID: 179225
src/write_graphite.c
patch
|
blob
|
history
diff --git
a/src/write_graphite.c
b/src/write_graphite.c
index
b85ab47
..
13adff5
100644
(file)
--- a/
src/write_graphite.c
+++ b/
src/write_graphite.c
@@
-312,6
+312,7
@@
static void wg_callback_free(void *data) {
sfree(cb->prefix);
sfree(cb->postfix);
+ pthread_mutex_unlock(&cb->send_lock);
pthread_mutex_destroy(&cb->send_lock);
sfree(cb);