projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a261da6
)
src/plugin.c: Remove an unused variable.
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
265bf46
..
a5c6c52
100644
(file)
--- 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));