diff --git a/src/twc-tox-callbacks.c b/src/twc-tox-callbacks.c index 170cd33..ed8944a 100644 --- a/src/twc-tox-callbacks.c +++ b/src/twc-tox-callbacks.c @@ -368,6 +368,9 @@ twc_group_namelist_change_callback(Tox *tox, weechat_prefix("quit"), prev_name); break; } + + if (prev_name) + free(prev_name); } void