summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorDaniel Vassdal <shutter@canternet.org>2013-11-24 16:04:32 -0800
committerAttila Molnar <attilamolnar@hush.com>2013-12-18 16:10:33 +0100
commit0680b529874b701b20650586d8466a155d9ba0d5 (patch)
tree0df766db7b4dda4102fcf3ab2cefd05bb3d8fb1b /src/modules.cpp
parentff407e675117ca15f35df4ff294d07fa43069e63 (diff)
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
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp2
1 files changed, 2 insertions, 0 deletions
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);
}