Fixed a pointer use after free.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6104 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
2461efa911
commit
648123eb0a
|
@ -281,9 +281,10 @@ void MyConn::closeConn()
|
||||||
MYSQL* tmp = m_conn;
|
MYSQL* tmp = m_conn;
|
||||||
m_conn = 0;
|
m_conn = 0;
|
||||||
mysql_close(tmp);
|
mysql_close(tmp);
|
||||||
|
String name(*this);
|
||||||
if (m_owner)
|
if (m_owner)
|
||||||
m_owner->m_connections.remove(this);
|
m_owner->m_connections.remove(this);
|
||||||
Debug(&module,DebugInfo,"Database connection '%s' closed",c_str());
|
Debug(&module,DebugInfo,"Database connection '%s' closed",name.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyConn::runQueries()
|
void MyConn::runQueries()
|
||||||
|
|
Loading…
Reference in New Issue