summaryrefslogtreecommitdiff
path: root/wrapper/plugin-find.h
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper/plugin-find.h')
-rw-r--r--wrapper/plugin-find.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/wrapper/plugin-find.h b/wrapper/plugin-find.h
index 9444f55..f2d102f 100644
--- a/wrapper/plugin-find.h
+++ b/wrapper/plugin-find.h
@@ -95,13 +95,14 @@ plugin_find_commands(struct plugin *plugin, char *name)
}
}
-#ifdef DEBUG
void
-plugin_print_command_list(struct plugin_command_list *list, int ind)
+plugin_free_list(struct plugin_command_list *node)
{
-
+ if (node!=NULL) {
+ plugin_free_list(node->next);
+ xfree(node);
+ }
}
-#endif /*DEBUG*/
#endif