diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 752b164d..9cc3b744 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -1816,6 +1816,10 @@ void kill_messenger(Messenger *m) kill_DHT(m->dht); kill_net_crypto(m->net_crypto); kill_networking(m->net); + for (i = 0; i < m->numfriends; ++i) { + if (m->friendlist[i].statusmessage) + free(m->friendlist[i].statusmessage); + } free(m->friendlist); free(m); }