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; } diff --git a/weechat/src/common/command.c b/weechat/src/common/command.c index 0f6d388f2..2741f9bc2 100644 --- a/weechat/src/common/command.c +++ b/weechat/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; }