diff options
| author | 2007-10-13 22:51:46 +0000 | |
|---|---|---|
| committer | 2007-10-13 22:51:46 +0000 | |
| commit | 7330b6579e4fe6719a4d214dd0ea994015fdd5da (patch) | |
| tree | 70bd8c48eded81026ca97ade875b05232ac09c06 /src/modules/m_ident.cpp | |
| parent | More fixes to the ident stuff to make sure that one socket doesnt go before t... (diff) | |
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
Diffstat (limited to 'src/modules/m_ident.cpp')
| -rw-r--r-- | src/modules/m_ident.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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(); + } } } }; |
