From 16717f83227219be59a252f89db94172d7ff8f0d Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 23 Jan 2004 19:44:59 +0000 Subject: Fixed memory leak in exec_weechat_command() --- src/common/command.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/common/command.c b/src/common/command.c index 0f6d388f2..2741f9bc2 100644 --- a/src/common/command.c +++ b/src/common/command.c @@ -572,6 +572,7 @@ exec_weechat_command (t_irc_server *server, char *string) free (argv[j]); free (argv); } + free (command); return 1; } } @@ -630,6 +631,7 @@ exec_weechat_command (t_irc_server *server, char *string) free (argv[j]); free (argv); } + free (command); return 1; } } @@ -658,6 +660,7 @@ exec_weechat_command (t_irc_server *server, char *string) free (argv[j]); free (argv); } + free (command); return 1; } } @@ -672,6 +675,7 @@ exec_weechat_command (t_irc_server *server, char *string) free (argv); } } + free (command); return 0; } -- cgit v1.2.3