From 7330b6579e4fe6719a4d214dd0ea994015fdd5da Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 13 Oct 2007 22:51:46 +0000 Subject: [PATCH] And some more tweaks to make sure it frees memory :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8167 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 9272c5054..f522f6719 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -278,7 +278,11 @@ class ModuleIdent : public Module { int *fd; if (user->GetExt("ident_socket_fd", fd) && (ServerInstance->SE->GetRef(*fd) == isock)) + { + user->Shrink("ident_socket_fd"); + delete fd; isock->Close(); + } } } } @@ -290,7 +294,11 @@ class ModuleIdent : public Module { int *fd; if (user->GetExt("ident_socket_fd", fd) && (ServerInstance->SE->GetRef(*fd) == isock)) + { + user->Shrink("ident_socket_fd"); + delete fd; isock->Close(); + } } } }; -- 2.39.5