Skip to content

Commit aab5229

Browse files
committed
BUG#28680129: FIX MEMORY LEAK IN EXECUTING QUERY AND CLIENT.CLOSE() IN
CONNECTION POOL
1 parent c08bf2c commit aab5229

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cdk/mysqlx/session.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,13 +746,13 @@ Reply_init& Session::view_drop(const api::Table_ref &view, bool check_existence)
746746
}
747747

748748

749-
750749
Reply_init &Session::set_command(Proto_op *cmd)
751750
{
751+
m_cmd.reset(cmd);
752+
752753
if (!is_valid())
753754
throw_error("set_command: invalid session");
754755

755-
m_cmd.reset(cmd);
756756

757757
return *this;
758758
}

0 commit comments

Comments
 (0)