diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2009-09-13 00:09:41 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:15 -0600 |
commit | dbd499c654ffc8f1195fc03bd06680045bc0e306 (patch) | |
tree | 0f6e7b121c9687fea7e8b1d5fd342835489d4fbd /wrapper/plugins.h | |
parent | ccd574f08659e191cddbd63f00c0e9e9760827d4 (diff) |
I like this
Diffstat (limited to 'wrapper/plugins.h')
-rw-r--r-- | wrapper/plugins.h | 8 |
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); |