From dbd499c654ffc8f1195fc03bd06680045bc0e306 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 13 Sep 2009 00:09:41 -0400 Subject: I like this --- wrapper/plugin-find.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'wrapper/plugin-find.h') 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 -- cgit v1.2.3-54-g00ecf