Remember to free prev_name if it is allocated.

This commit is contained in:
Håvard Pettersson 2014-11-20 11:13:20 +01:00
parent cba04d0062
commit bdc0000cce

View File

@ -368,6 +368,9 @@ twc_group_namelist_change_callback(Tox *tox,
weechat_prefix("quit"), prev_name);
break;
}
if (prev_name)
free(prev_name);
}
void