summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab2e3c9)
raw | patch | inline | side by side (parent: ab2e3c9)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 29 Nov 2015 15:40:50 +0000 (16:40 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 30 Nov 2015 10:52:54 +0000 (11:52 +0100) |
CID 37972
Signed-off-by: Florian Forster <octo@collectd.org>
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 192a04d7b4c414131bb2247eaa3de228693a4987..9b5723ad2992c4d3cdcaa448c9462afead768866 100644 (file)
--- a/src/rrdtool.c
+++ b/src/rrdtool.c
{
rc = malloc (sizeof (*rc));
if (rc == NULL)
+ {
+ pthread_mutex_unlock (&cache_lock);
return (-1);
+ }
rc->values_num = 0;
rc->values = NULL;
rc->first_value = 0;