diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-23 19:08:37 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-23 19:08:37 +0000 |
commit | 4a519ed2014d4f05cfc4710f125e32ad6230cbc4 (patch) | |
tree | b171e944e06ff143112888e8c830c3c961fe7e32 /src/modules/m_ident.cpp | |
parent | 636f6a023fbc44b00113d15ec57463bea8e5e4e2 (diff) |
Fix small memory leak
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6700 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r-- | src/modules/m_ident.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; } } |