projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea4e6f8
)
rrdtool: release another lock on error
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 29 Nov 2015 17:14:28 +0000
(18:14 +0100)
committer
Florian Forster
<octo@collectd.org>
Mon, 30 Nov 2015 10:47:59 +0000
(11:47 +0100)
CID 37973
Signed-off-by: Florian Forster <octo@collectd.org>
src/rrdtool.c
patch
|
blob
|
history
diff --git
a/src/rrdtool.c
b/src/rrdtool.c
index
8497a24
..
192a04d
100644
(file)
--- a/
src/rrdtool.c
+++ b/
src/rrdtool.c
@@
-1204,6
+1204,7
@@
static int rrd_init (void)
cache = c_avl_create ((int (*) (const void *, const void *)) strcmp);
if (cache == NULL)
{
+ pthread_mutex_unlock (&cache_lock);
ERROR ("rrdtool plugin: c_avl_create failed.");
return (-1);
}