MXS-1939 Fix leaks in mock-class
The mock-class used in the cache testing leaked memory.
This commit is contained in:
@ -214,6 +214,7 @@ private:
|
|||||||
void ResultSetBackend::handle_statement(RouterSession* pSession, GWBUF* pStatement)
|
void ResultSetBackend::handle_statement(RouterSession* pSession, GWBUF* pStatement)
|
||||||
{
|
{
|
||||||
qc_query_op_t op = qc_get_operation(pStatement);
|
qc_query_op_t op = qc_get_operation(pStatement);
|
||||||
|
gwbuf_free(pStatement);
|
||||||
|
|
||||||
if (op == QUERY_OP_SELECT)
|
if (op == QUERY_OP_SELECT)
|
||||||
{
|
{
|
||||||
@ -223,6 +224,7 @@ void ResultSetBackend::handle_statement(RouterSession* pSession, GWBUF* pStateme
|
|||||||
ResultSetDCB dcb;
|
ResultSetDCB dcb;
|
||||||
|
|
||||||
resultset_stream_mysql(pResult_set, &dcb);
|
resultset_stream_mysql(pResult_set, &dcb);
|
||||||
|
resultset_free(pResult_set);
|
||||||
|
|
||||||
enqueue_response(pSession, dcb.create_response());
|
enqueue_response(pSession, dcb.create_response());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user