summaryrefslogtreecommitdiff
path: root/wrapper/plugin-find.h
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-09-13 00:09:41 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:15 -0600
commitdbd499c654ffc8f1195fc03bd06680045bc0e306 (patch)
tree0f6e7b121c9687fea7e8b1d5fd342835489d4fbd /wrapper/plugin-find.h
parentccd574f08659e191cddbd63f00c0e9e9760827d4 (diff)
I like this
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