projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'collectd-5.4' into collectd-5.5
[collectd.git]
/
src
/
aggregation.c
diff --git
a/src/aggregation.c
b/src/aggregation.c
index
8175c66
..
56e4955
100644
(file)
--- a/
src/aggregation.c
+++ b/
src/aggregation.c
@@
-262,6
+262,7
@@
static agg_instance_t *agg_instance_create (data_set_t const *ds, /* {{{ */
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); \
} \