From 4a519ed2014d4f05cfc4710f125e32ad6230cbc4 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 23 Mar 2007 19:08:37 +0000 Subject: Fix small memory leak git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6700 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 525a2dc97..3fb61e345 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -160,6 +160,8 @@ class RFC1413 : public InspSocket if (success) { Instance->Log(DEBUG,"BUG: Ident: failed to get socket names"); + delete sock_us; + delete sock_them; return false; } else @@ -174,6 +176,8 @@ class RFC1413 : public InspSocket snprintf(ident_request,127,"%d,%d\r\n",ntohs(((sockaddr_in*)sock_them)->sin_port),ntohs(((sockaddr_in*)sock_us)->sin_port)); #endif this->Write(ident_request); + delete sock_us; + delete sock_them; return true; } } -- cgit v1.2.3