From 0680b529874b701b20650586d8466a155d9ba0d5 Mon Sep 17 00:00:00 2001 From: Daniel Vassdal Date: Sun, 24 Nov 2013 16:04:32 -0800 Subject: Fix issues discovered by Coverity - Fix resource leak in InspIRCd::Format() - Explicitly set NewServices to NULL before the object it points to goes out of scope --- src/modules.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 92f619743..2157d1948 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -550,6 +550,8 @@ void ModuleManager::LoadAll() } } + this->NewServices = NULL; + if (!PrioritizeHooks()) ServerInstance->Exit(EXIT_STATUS_MODULE); } -- cgit v1.3.1-10-gc9f91