Merge pull request #740 from taosdata/feature/bmzhang

fix TBASE-1176
This commit is contained in:
slguan 2019-11-18 16:33:49 +08:00 committed by GitHub
commit dbb888c117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -549,7 +549,9 @@ void* taosTmrInit(int maxNumOfTmrs, int resolution, int longest, const char* lab
void taosTmrCleanUp(void* handle) {
tmr_ctrl_t* ctrl = (tmr_ctrl_t*)handle;
assert(ctrl != NULL && ctrl->label[0] != 0);
if (ctrl == NULL || ctrl->label[0] == 0) {
return;
}
tmrTrace("%s timer controller is cleaned up.", ctrl->label);
ctrl->label[0] = 0;