Filter limit: fix leak
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 17 Dec 2009 14:12:47 +0000 (15:12 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 17 Dec 2009 14:12:47 +0000 (15:12 +0100)
src/filter_limit.cpp

index f2c7399..0826ffd 100644 (file)
@@ -183,7 +183,10 @@ void yf::Limit::Impl::process(mp::Package &package)
             }
         }
         if (package.session().is_closed())
+        {
             m_sessions.erase(package.session());
+            delete ses;
+        }
     }
     if (reduce)
     {