Fix leak.
This commit is contained in:
parent
2ef3506a22
commit
aab5e61c05
@ -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 ?
|
||||||
|
Loading…
Reference in New Issue
Block a user