1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 06:46:38 +02:00

Fixed memory leak in exec_weechat_command()

This commit is contained in:
Sebastien Helleu
2004-01-23 19:44:59 +00:00
parent dc38b59849
commit 16717f8322
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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;
}
+4
View File
@@ -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;
}