提交 9278ed2a 编写于 作者: dengyihao's avatar dengyihao

fix mem leak

上级 6eb032f3
...@@ -146,7 +146,7 @@ typedef struct SSchedulerMgmt { ...@@ -146,7 +146,7 @@ typedef struct SSchedulerMgmt {
bool exit; bool exit;
int32_t jobRef; int32_t jobRef;
int32_t jobNum; int32_t jobNum;
SSchStat stat; SSchStat stat;
void *timer; void *timer;
SRWLatch hbLock; SRWLatch hbLock;
SHashObj *hbConnections; SHashObj *hbConnections;
...@@ -214,9 +214,9 @@ typedef struct SSchRedirectCtx { ...@@ -214,9 +214,9 @@ typedef struct SSchRedirectCtx {
} SSchRedirectCtx; } SSchRedirectCtx;
typedef struct SSchTimerParam { typedef struct SSchTimerParam {
int64_t rId; int64_t rId;
uint64_t queryId; uint64_t queryId;
uint64_t taskId; uint64_t taskId;
} SSchTimerParam; } SSchTimerParam;
typedef struct SSchTask { typedef struct SSchTask {
......
...@@ -1152,7 +1152,12 @@ void schHandleTimerEvent(void *param, void *tmrId) { ...@@ -1152,7 +1152,12 @@ void schHandleTimerEvent(void *param, void *tmrId) {
SSchJob *pJob = NULL; SSchJob *pJob = NULL;
int32_t code = 0; int32_t code = 0;
if (schProcessOnCbBegin(&pJob, &pTask, pTimerParam->queryId, pTimerParam->rId, pTimerParam->taskId)) { int64_t rId = pTimerParam->rId;
uint64_t queryId = pTimerParam->queryId;
uint64_t taskId = pTimerParam->taskId;
taosMemoryFree(pTimerParam);
if (schProcessOnCbBegin(&pJob, &pTask, queryId, rId, taskId)) {
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册