fix: memleak in taos (create table)

This commit is contained in:
Shungang Li 2024-09-11 17:39:24 +08:00
parent f9c8b6cd7b
commit 84e675c248
1 changed files with 3 additions and 0 deletions

View File

@ -1163,6 +1163,9 @@ void schedulerExecCb(SExecResult* pResult, void* param, int32_t code) {
(void)atomic_add_fetch_64((int64_t*)&pActivity->numOfInsertRows, pResult->numOfRows);
}
}
if (TSDB_CODE_SUCCESS == code) {
schedulerFreeJob(&pRequest->body.queryJob, 0);
}
}
taosMemoryFree(pResult);