aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/QueryResult.cpp
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2013-08-24 22:56:29 +0100
committerNay <dnpd.dd@gmail.com>2013-08-24 22:57:22 +0100
commit12973de799dde8f89b9049964e26ab63a960520a (patch)
tree2f1d0c6346c71f1c9543aa9fb497af3d12053249 /src/server/shared/Database/QueryResult.cpp
parent61016dcc66eaeef26dd21d3f5cf7323809a76080 (diff)
Core&Tools: Fix multiple issues found by a static code coverage tool
Diffstat (limited to 'src/server/shared/Database/QueryResult.cpp')
-rw-r--r--src/server/shared/Database/QueryResult.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/shared/Database/QueryResult.cpp b/src/server/shared/Database/QueryResult.cpp
index 4f4c0ec51f4..9413e28a0c0 100644
--- a/src/server/shared/Database/QueryResult.cpp
+++ b/src/server/shared/Database/QueryResult.cpp
@@ -60,6 +60,9 @@ m_length(NULL)
if (mysql_stmt_store_result(m_stmt))
{
TC_LOG_WARN(LOG_FILTER_SQL, "%s:mysql_stmt_store_result, cannot bind result from MySQL server. Error: %s", __FUNCTION__, mysql_stmt_error(m_stmt));
+ delete[] m_rBind;
+ delete[] m_isNull;
+ delete[] m_length;
return;
}