提交 5f0d77a3 编写于 作者: B bx0 提交者: LINGuanRen

When is_sensitive is true, memory leak.

上级 fded9898
......@@ -199,9 +199,12 @@ int ObMySQLRequestManager::record_request(const ObAuditRecordData& audit_record,
}
// push into queue
if (OB_SUCC(ret) && !is_sensitive) {
if (OB_SUCC(ret)) {
int64_t req_id = 0;
if (OB_FAIL(queue_.push(record, req_id))) {
if (is_sensitive) {
free(record);
record = NULL;
} else if (OB_FAIL(queue_.push(record, req_id))) {
if (REACH_TIME_INTERVAL(2 * 1000 * 1000)) {
SERVER_LOG(WARN, "push into queue failed", K(ret));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册