diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2004-01-23 19:44:59 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2004-01-23 19:44:59 +0000 |
commit | 16717f83227219be59a252f89db94172d7ff8f0d (patch) | |
tree | 2461986874c7a058eb5025c5dfcc92ee9cdacc2e /src/common/command.c | |
parent | dc38b59849da161573284139798ad54c1ea53102 (diff) | |
download | weechat-16717f83227219be59a252f89db94172d7ff8f0d.zip |
Fixed memory leak in exec_weechat_command()
Diffstat (limited to 'src/common/command.c')
-rw-r--r-- | src/common/command.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |