plugin.c: Advance the llentry_t pointer before calling the shutdown callback.
[collectd.git] / src / plugin.c
index 36cd80a..8087950 100644 (file)
@@ -607,9 +607,9 @@ void plugin_shutdown_all (void)
        while (le != NULL)
        {
                callback = (int (*) (void)) le->value;
-               (*callback) ();
-
                le = le->next;
+
+               (*callback) ();
        }
 } /* void plugin_shutdown_all */