summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-21 16:55:12 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-21 16:55:12 +0000
commit002f31f1dd4957d1e9353784bac1eb031a639b1b (patch)
treea766d05d8ce63c97b075f351aac9a8cf4763c494
parent337818ce518acd442d53cf061e2724eacdd389f7 (diff)
Fix leak, thanks aquanight
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10586 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_filter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp
index 57e5d8fdb..b82396dce 100644
--- a/src/modules/m_filter.cpp
+++ b/src/modules/m_filter.cpp
@@ -588,6 +588,7 @@ class ModuleFilter : public FilterBase
{
if (i->freeform == freeform)
{
+ delete i->regex;
filters.erase(i);
return true;
}