From: Paul Date: Sat, 2 Aug 2008 10:51:53 +0000 (+0100) Subject: fix sstring leak X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/429f366ccac05b549f5b46203287ce20b912790a fix sstring leak --- diff --git a/parser/parser.c b/parser/parser.c index 76d9e3a4..5ad49570 100644 --- a/parser/parser.c +++ b/parser/parser.c @@ -45,7 +45,14 @@ void destroycommandtree(CommandTree *ct) { destroycommandtree((CommandTree *)ct->next[i]); } } - + + if(ct->cmd) { + if(ct->cmd->command) + freesstring(ct->cmd->command); + if(ct->cmd->help) + free(ct->cmd->help); + free(ct->cmd); + } free(ct); }