From: Florian Forster Date: Sat, 7 Mar 2009 11:22:10 +0000 (+0100) Subject: src/plugin.c: Remove an unused variable. X-Git-Tag: collectd-4.7.0~121 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a23afc786611d8f62dca4eb945c695ab470f10e9;p=collectd.git src/plugin.c: Remove an unused variable. --- diff --git a/src/plugin.c b/src/plugin.c index 265bf46e..a5c6c527 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -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));