From a23afc786611d8f62dca4eb945c695ab470f10e9 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 7 Mar 2009 12:22:10 +0100 Subject: [PATCH] src/plugin.c: Remove an unused variable. --- src/plugin.c | 2 -- 1 file changed, 2 deletions(-) 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)); -- 2.30.2