summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74b894a)
raw | patch | inline | side by side (parent: 74b894a)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 29 Nov 2015 15:40:50 +0000 (16:40 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 29 Nov 2015 15:40:50 +0000 (16:40 +0100) |
CID 37972
src/rrdtool.c | patch | blob | history |
diff --git a/src/rrdtool.c b/src/rrdtool.c
index 764d6d65db0d2b545c94f41b8a105cd0cda3e97e..e093f2b27f5395c7ec304044d84fc305af6e0fef 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;