From 2656f7f4026708f210c6ce7c39f5fc6831597982 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 16 Mar 2014 13:49:06 -0300 Subject: Improved ERS memory handling On shutdown the ERS will loop thru leftover managers and clear them according to each manager's settings, while also printing errors according to each manager's settings. Will also help pinpoint the causes of http://hercules.ws/board/tracker/issue-8093-memory-leak-after-stop-server-cant-fix/ and similar issues. Signed-off-by: shennetsind --- src/common/core.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common/core.c') diff --git a/src/common/core.c b/src/common/core.c index 86634ec4b..c6075da40 100644 --- a/src/common/core.c +++ b/src/common/core.c @@ -20,6 +20,7 @@ #include "../common/HPM.h" #include "../common/utils.h" #include "../common/conf.h" + #include "../common/ers.h" #endif #include @@ -372,6 +373,7 @@ int main (int argc, char **argv) { sockt->final(); DB->final(); rathread_final(); + ers_final(); #endif iMalloc->final(); -- cgit v1.2.3-70-g09d2