projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f123d38
)
write_riemann plugin: Unlock mutex before destroying it.
author
Florian Forster
<octo@collectd.org>
Fri, 17 Nov 2017 16:16:39 +0000
(17:16 +0100)
committer
Florian Forster
<octo@collectd.org>
Fri, 17 Nov 2017 16:16:39 +0000
(17:16 +0100)
CID: 179227
src/write_riemann.c
patch
|
blob
|
history
diff --git
a/src/write_riemann.c
b/src/write_riemann.c
index
3835a3d
..
00852ff
100644
(file)
--- a/
src/write_riemann.c
+++ b/
src/write_riemann.c
@@
-601,6
+601,7
@@
static void wrr_free(void *p) /* {{{ */
wrr_disconnect(host);
+ pthread_mutex_lock(&host->lock);
pthread_mutex_destroy(&host->lock);
sfree(host);
} /* }}} void wrr_free */