summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a261da6)
raw | patch | inline | side by side (parent: a261da6)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 7 Mar 2009 11:22:10 +0000 (12:22 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 7 Mar 2009 11:22:10 +0000 (12:22 +0100) |
src/plugin.c | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index 265bf46ebce99dfe2f30d6413cea3f012eaa9e6c..a5c6c527f1b534325f537567abb6f147db11e49a 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
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));