From: Florian Forster Date: Wed, 17 Jun 2015 05:34:57 +0000 (+0200) Subject: notification target: Pass void** to tn_destroy(). X-Git-Tag: collectd-5.5.1~110^2~4 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=b37ddefb01607272698e10c1e84a62ccbb8a5036;p=collectd.git notification target: Pass void** to tn_destroy(). The previous call was bad, resulting in errors in free(). --- diff --git a/src/target_notification.c b/src/target_notification.c index b4654387..7908a29b 100644 --- a/src/target_notification.c +++ b/src/target_notification.c @@ -176,7 +176,7 @@ static int tn_create (const oconfig_item_t *ci, void **user_data) /* {{{ */ if (status != 0) { - tn_destroy ((void *) data); + tn_destroy ((void *) &data); return (status); }