Fix memory leak in _handle_invmsg_command() when returning without calling irc_unget_listelems() on variable 'e'
This commit is contained in:
parent
daee1995f9
commit
24b92311a0
1 changed files with 3 additions and 0 deletions
|
@ -1573,6 +1573,9 @@ namespace pvpgn
|
|||
message_send_text(user, message_type_invmsg, conn, temp);
|
||||
}
|
||||
}
|
||||
|
||||
if (e)
|
||||
irc_unget_listelems(e);
|
||||
}
|
||||
else {
|
||||
irc_send(conn, ERR_NEEDMOREPARAMS, "INVMSG :Not enough parameters");
|
||||
|
|
Loading…
Reference in a new issue