mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/DB Layer: Fix a memory leak for synchronously executed prepared statements.
This commit is contained in:
@@ -268,6 +268,9 @@ class DatabaseWorkerPool
|
||||
PreparedResultSet* ret = t->Query(stmt);
|
||||
t->Unlock();
|
||||
|
||||
//! Delete proxy-class. Not needed anymore
|
||||
delete stmt;
|
||||
|
||||
if (!ret || !ret->GetRowCount())
|
||||
return PreparedQueryResult(NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user