LIST: plug memory leak

This commit is contained in:
William Pitcock 2016-01-22 16:07:55 -05:00
parent 912cae0c9c
commit b9a32bd24b

View file

@ -480,7 +480,9 @@ static void safelist_iterate_client(struct Client *source_p)
{ {
if (safelist_sendq_exceeded(source_p->from) == YES) if (safelist_sendq_exceeded(source_p->from) == YES)
{ {
rb_free(source_p->localClient->safelist_data->chname);
source_p->localClient->safelist_data->chname = rb_strdup(chptr->chname); source_p->localClient->safelist_data->chname = rb_strdup(chptr->chname);
return; return;
} }