diff --git a/src/util/src/tqueue.c b/src/util/src/tqueue.c index 6a37f11ecef376e70f4eefbf6446150bd350cf07..1ffa94b0df6b63dac914649c7003d37bbedbdb24 100644 --- a/src/util/src/tqueue.c +++ b/src/util/src/tqueue.c @@ -258,9 +258,9 @@ void taosCloseQset(taos_qset param) { pthread_mutex_unlock(&qset->mutex); pthread_mutex_destroy(&qset->mutex); + uTrace("qset:%p is closed", qset); tsem_destroy(&qset->sem); free(qset); - uTrace("qset:%p is closed", qset); } // tsem_post 'qset->sem', so that reader threads waiting for it