summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ce65e9a)
raw | patch | inline | side by side (parent: ce65e9a)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 5 Dec 2015 12:33:54 +0000 (13:33 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 5 Dec 2015 20:31:48 +0000 (21:31 +0100) |
CID #38005
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/aggregation.c | patch | blob | history |
diff --git a/src/aggregation.c b/src/aggregation.c
index 8175c66c18fb14ded8b5a4be282a9cf4e1a418c0..56e4955c247d3a4d8252d44e21b2f58d3e2be7bc 100644 (file)
--- a/src/aggregation.c
+++ b/src/aggregation.c
inst->state_ ## field = malloc (sizeof (*inst->state_ ## field)); \
if (inst->state_ ## field == NULL) { \
agg_instance_destroy (inst); \
+ free (inst); \
ERROR ("aggregation plugin: malloc() failed."); \
return (NULL); \
} \