From 5d421c433f6b9bf6543e368aeaa4b98fa426c701 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 8 Sep 2006 19:27:57 +0000 Subject: 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 --- src/socket.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/socket.cpp') 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; } -- cgit v1.2.3