CID #38005
Signed-off-by: Florian Forster <octo@collectd.org>
inst->state_ ## field = malloc (sizeof (*inst->state_ ## field)); \
if (inst->state_ ## field == NULL) { \
agg_instance_destroy (inst); \
inst->state_ ## field = malloc (sizeof (*inst->state_ ## field)); \
if (inst->state_ ## field == NULL) { \
agg_instance_destroy (inst); \
ERROR ("aggregation plugin: malloc() failed."); \
return (NULL); \
} \
ERROR ("aggregation plugin: malloc() failed."); \
return (NULL); \
} \