1
0
forked from bip/bip

Fix leak.

This commit is contained in:
Arnaud Cornet 2009-01-05 22:52:25 +01:00
parent 2ef3506a22
commit aab5e61c05

View File

@ -1489,9 +1489,12 @@ static int irc_part(struct link_server *server, struct line *line)
if (!line->origin) if (!line->origin)
return ERR_PROTOCOL; return ERR_PROTOCOL;
s_nick = nick_from_ircmask(line->origin); s_nick = nick_from_ircmask(line->origin);
if (!hash_includes(&channel->ovmasks, s_nick)) if (!hash_includes(&channel->ovmasks, s_nick)) {
free(s_nick);
return ERR_PROTOCOL; return ERR_PROTOCOL;
}
hash_remove(&channel->ovmasks, s_nick); hash_remove(&channel->ovmasks, s_nick);
free(s_nick);
log_part(LINK(server)->log, line->origin, s_chan, log_part(LINK(server)->log, line->origin, s_chan,
irc_line_count(line) == 3 ? irc_line_count(line) == 3 ?