fix: release obj reference
This commit is contained in:
parent
5c7f839da8
commit
6c9bfb8f62
|
@ -52,8 +52,10 @@ void sqlReqLog(int64_t rid, bool killed, int32_t code) {
|
|||
if (pTscObj != NULL) {
|
||||
if (pTscObj->pAppInfo == NULL) {
|
||||
tscLog("sqlReqLog, not found pAppInfo");
|
||||
} else {
|
||||
clientSQLReqLog(pTscObj->pAppInfo->instKey, pTscObj->user, result);
|
||||
}
|
||||
return clientSQLReqLog(pTscObj->pAppInfo->instKey, pTscObj->user, result);
|
||||
releaseTscObj(rid);
|
||||
} else {
|
||||
tscLog("sqlReqLog, not found rid");
|
||||
}
|
||||
|
|
|
@ -69,8 +69,10 @@ void SlowQueryLog(int64_t rid, bool killed, int32_t code, int32_t cost) {
|
|||
if (pTscObj != NULL) {
|
||||
if(pTscObj->pAppInfo == NULL) {
|
||||
tscLog("SlowQueryLog, not found pAppInfo");
|
||||
} else {
|
||||
clientSlowQueryLog(pTscObj->pAppInfo->instKey, pTscObj->user, result, cost);
|
||||
}
|
||||
return clientSlowQueryLog(pTscObj->pAppInfo->instKey, pTscObj->user, result, cost);
|
||||
releaseTscObj(rid);
|
||||
} else {
|
||||
tscLog("SlowQueryLog, not found rid");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue