diff options
author | shennetsind <ind@henn.et> | 2014-03-16 13:49:06 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-03-16 13:49:06 -0300 |
commit | 2656f7f4026708f210c6ce7c39f5fc6831597982 (patch) | |
tree | 1dd5ee1a8152982b32ae8db4a6a2b01310f2d9c0 /src/common/core.c | |
parent | 8c6547a5c3ec4d6b1845b60d14b0aae5c827892c (diff) | |
download | hercules-2656f7f4026708f210c6ce7c39f5fc6831597982.tar.gz hercules-2656f7f4026708f210c6ce7c39f5fc6831597982.tar.bz2 hercules-2656f7f4026708f210c6ce7c39f5fc6831597982.tar.xz hercules-2656f7f4026708f210c6ce7c39f5fc6831597982.zip |
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 <ind@henn.et>
Diffstat (limited to 'src/common/core.c')
-rw-r--r-- | src/common/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <stdio.h> @@ -372,6 +373,7 @@ int main (int argc, char **argv) { sockt->final(); DB->final(); rathread_final(); + ers_final(); #endif iMalloc->final(); |