Fix memory leak in _handle_startg_command() when returning without calling irc_unget_listelems() on variable 'e'
This commit is contained in:
parent
e7b81495dd
commit
dee1d78a72
1 changed files with 2 additions and 2 deletions
|
@ -1287,15 +1287,15 @@ namespace pvpgn
|
|||
|
||||
if ((numparams >= 2) && (params[1])) {
|
||||
int i;
|
||||
char ** e;
|
||||
|
||||
std::memset(temp, 0, sizeof(temp));
|
||||
|
||||
e = irc_get_listelems(params[1]);
|
||||
char ** e = irc_get_listelems(params[1]);
|
||||
/* FIXME: support wildcards! */
|
||||
|
||||
if (!(game = conn_get_game(conn))) {
|
||||
ERROR0("conn has not game");
|
||||
irc_unget_listelems(e);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue