Fix memory leak in _handle_invmsg_command() when returning without calling irc_unget_listelems() on variable 'e'

This commit is contained in:
RElesgoe 2016-08-23 20:59:56 -07:00
parent daee1995f9
commit 24b92311a0

View file

@ -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");