From 014502d9513517841389a59ae98ac0c705d158b5 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 9 Sep 2008 11:05:14 +0000 Subject: [PATCH] Remember to free some stuff when failing in the ctor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10489 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_mysql.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index 7edf602e6..7e2420267 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -761,6 +761,7 @@ ModuleSQL::ModuleSQL(InspIRCd* Me) : Module(Me), rehashing(false) if (MessagePipe->GetFd() == -1) { delete ConnMutex; + ServerInstance->Modules->DoneWithInterface("SQLutils"); throw ModuleException("m_mysql: unable to create ITC pipe"); } else @@ -781,6 +782,11 @@ ModuleSQL::ModuleSQL(InspIRCd* Me) : Module(Me), rehashing(false) /* Tell worker thread to exit NOW, * Automatically joins */ delete Dispatcher; + delete LoggingMutex; + delete ResultsMutex; + delete QueueMutex; + delete ConnMutex; + ServerInstance->Modules->DoneWithInterface("SQLutils"); throw ModuleException("m_mysql: Unable to publish feature 'SQL'"); } -- 2.39.5