mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/DBLayer: Fix a memory leak in prepared statement parameter/result binds. Original author: raczman
--HG-- branch : trunk
This commit is contained in:
@@ -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