From: Ruben Kerkhof Date: Sun, 29 Nov 2015 17:14:28 +0000 (+0100) Subject: rrdtool: release another lock on error X-Git-Tag: collectd-5.5.1~40^2~23 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=65b7501893c7c828800ad4595274398c321511e1;p=collectd.git rrdtool: release another lock on error CID 37973 Signed-off-by: Florian Forster --- diff --git a/src/rrdtool.c b/src/rrdtool.c index 8497a24c..192a04d7 100644 --- 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); }