Core/DBLayer: Fix a memory leak in prepared statement parameter/result binds. Original author: raczman
--HG-- branch : trunk
This commit is contained in:
1 parent
6d0a031a77
commit
88f378e7ae
3 files changed
+7
-6
No files matched your search
@@ -176,8 +176,13 @@ void ResultBind::FreeBindBuffer()
|
||||
|
||||
void ResultBind::CleanUp()
|
||||
{
|
||||
if (m_res)
|
||||
mysql_free_result(m_res);
|
||||
|
||||
FreeBindBuffer();
|
||||
mysql_stmt_free_result(m_stmt);
|
||||
|
||||
delete[] m_rBind;
|
||||
}
|
||||
|
||||
uint8 PreparedResultSet::GetUInt8(uint32 index)
|
||||
|
||||
Reference in new issue
Block a user