Remember to free prev_name if it is allocated.
This commit is contained in:
parent
cba04d0062
commit
bdc0000cce
@ -368,6 +368,9 @@ twc_group_namelist_change_callback(Tox *tox,
|
|||||||
weechat_prefix("quit"), prev_name);
|
weechat_prefix("quit"), prev_name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (prev_name)
|
||||||
|
free(prev_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user