summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-08 19:27:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-08 19:27:57 +0000
commit5d421c433f6b9bf6543e368aeaa4b98fa426c701 (patch)
tree159ed10ca4578976f4dc8db98cc3090e4a9bdee1 /src
parent2a354af62a04a146ae72b0922fecbab9004f25e8 (diff)
Fix small memory leak if non-cidr string passed to MatchCIDR
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5173 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/socket.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index eaa8e0d8c..4bf9dc30b 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -215,6 +215,7 @@ bool irc::sockets::MatchCIDR(const char* address, const char* cidr_mask, bool ma
else
{
/* No 'number of bits' field! */
+ free(mask);
return false;
}