projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix ref to freed memory in log filter 1line - MP-556
[metaproxy-moved-to-github.git]
/
src
/
thread_pool_observer.cpp
diff --git
a/src/thread_pool_observer.cpp
b/src/thread_pool_observer.cpp
index
8353f5b
..
a52cd92
100644
(file)
--- a/
src/thread_pool_observer.cpp
+++ b/
src/thread_pool_observer.cpp
@@
-220,7
+220,10
@@
void ThreadPoolSocketObserver::cleanup(IThreadPoolMsg *m, void *info)
while (it != m_p->m_input.end())
{
if ((*it)->cleanup(info))
while (it != m_p->m_input.end())
{
if ((*it)->cleanup(info))
+ {
+ delete *it;
it = m_p->m_input.erase(it);
it = m_p->m_input.erase(it);
+ }
else
it++;
}
else
it++;
}