From 9e87f92c645f70aabbb9baf5de191f52acf94b19 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Mon, 27 May 2019 19:20:25 +0200 Subject: [PATCH] Fix small memory leak in SJOIN. --- src/modules/m_sajoin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/m_sajoin.c b/src/modules/m_sajoin.c index cc6bfebe1..84020c6f3 100644 --- a/src/modules/m_sajoin.c +++ b/src/modules/m_sajoin.c @@ -185,6 +185,7 @@ CMD_FUNC(m_sajoin) ":%s PART %s :%s", acptr->name, chptr->chname, "Left all channels"); sendto_server(cptr, 0, 0, mtags, ":%s PART %s :Left all channels", acptr->name, chptr->chname); + free_message(mtags); if (MyConnect(acptr)) RunHook4(HOOKTYPE_LOCAL_PART, acptr, acptr, chptr, "Left all channels"); remove_user_from_channel(acptr, chptr);