]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
And some more tweaks to make sure it frees memory :P
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 13 Oct 2007 22:51:46 +0000 (22:51 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 13 Oct 2007 22:51:46 +0000 (22:51 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8167 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_ident.cpp

index 9272c50549aa38e6e5043802a06ba730945300e0..f522f67195b76854565f611443eef1524c7b43a2 100644 (file)
@@ -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();
+                       }
                }
        }
 };