summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_mysql.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-12 09:51:38 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-12 09:51:38 +0000
commit96d2e6ff72e5f77b95d306bfd6396a34b56ccd93 (patch)
tree413c58dad97e303018c253b1ae2b13c79f836e9f /src/modules/extra/m_mysql.cpp
parentc5d8d3e3c6b7a5cb44572d9a9b6e5249d74cb1f7 (diff)
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
Diffstat (limited to 'src/modules/extra/m_mysql.cpp')
-rw-r--r--src/modules/extra/m_mysql.cpp1
1 files changed, 1 insertions, 0 deletions
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;