summaryrefslogtreecommitdiff
path: root/wrapper/plugins.h
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper/plugins.h')
-rw-r--r--wrapper/plugins.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/wrapper/plugins.h b/wrapper/plugins.h
index 739fce8..1e88279 100644
--- a/wrapper/plugins.h
+++ b/wrapper/plugins.h
@@ -58,6 +58,9 @@ plugin_mk_command()
{
struct plugin_command *command;
command=(struct plugin_command *)xmalloc(sizeof(*command));
+ #ifdef DEBUG
+ printf("malloc'd command: %p\n",command);
+ #endif
/* node */
command->name=NULL;
@@ -79,8 +82,11 @@ void
plugin_free_command(struct plugin_command *command)
{
if (command!=NULL) {
- printf("%p\n",command->next);
plugin_free_command(command->next);
+ #ifdef DEBUG
+ printf(" free'd command: %p \"%s\"\n",
+ command,command->name);
+ #endif
xfree(command->name);
xfree(command->depends);
xfree(command);