X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fplugin.c;h=9f42f2e42f41b354592a0a693b4f22f99943e326;hb=ec842e40fbae1bb22e90a65dfcfab16eca3fc316;hp=61cc09c6251500c275ddee80582cd7bcbb8f7bab;hpb=6597f3a6584704f92f824f3cf7bac3369102e8a0;p=collectd.git diff --git a/src/plugin.c b/src/plugin.c index 61cc09c6..9f42f2e4 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -1154,7 +1154,7 @@ int plugin_notification_meta_copy (notification_t *dst, return (0); } /* int plugin_notification_meta_copy */ -int plugin_notification_meta_free (notification_t *n) +int plugin_notification_meta_free (notification_meta_t *n) { notification_meta_t *this; notification_meta_t *next; @@ -1165,8 +1165,7 @@ int plugin_notification_meta_free (notification_t *n) return (-1); } - this = n->meta; - n->meta = NULL; + this = n; while (this != NULL) { next = this->next;