gmond plugin: Add a plugin to receive Ganglia multicast traffic.
[collectd.git] / src / plugin.c
index d185ef2..a5c6c52 100644 (file)
@@ -196,14 +196,12 @@ static int register_callback (llist_t **list, /* {{{ */
 static int create_register_callback (llist_t **list, /* {{{ */
                const char *name, void *callback, user_data_t *ud)
 {
-       char *key;
        callback_func_t *cf;
 
        cf = (callback_func_t *) malloc (sizeof (*cf));
        if (cf == NULL)
        {
                ERROR ("plugin: create_register_callback: malloc failed.");
-               sfree (key);
                return (-1);
        }
        memset (cf, 0, sizeof (*cf));
@@ -404,6 +402,8 @@ static void stop_read_threads (void)
        if (read_threads == NULL)
                return;
 
+       INFO ("collectd: Stopping %i read threads.", read_threads_num);
+
        pthread_mutex_lock (&read_lock);
        read_loop = 0;
        DEBUG ("plugin: stop_read_threads: Signalling `read_cond'");