From 96d2e6ff72e5f77b95d306bfd6396a34b56ccd93 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 12 Jul 2008 09:51:38 +0000 Subject: Fix a memory leak in m_mysql, found and patched by Dart in bug #570 - thanks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9962 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_mysql.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/modules/extra') diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index e49c3ced4..0a3f58076 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -689,6 +689,7 @@ class Notifier : public BufferedSocket pthread_mutex_lock(&results_mutex); ResultQueue::iterator n = iter->second->rq.begin(); (*n)->Send(); + delete (*n); iter->second->rq.pop_front(); pthread_mutex_unlock(&results_mutex); return true; -- cgit v1.2.3