notification target: Pass void** to tn_destroy().
[collectd.git] / src / target_notification.c
index b465438..7908a29 100644 (file)
@@ -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);
   }