From 65b7501893c7c828800ad4595274398c321511e1 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 29 Nov 2015 18:14:28 +0100 Subject: [PATCH] rrdtool: release another lock on error CID 37973 Signed-off-by: Florian Forster --- src/rrdtool.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.30.2