fix add mem free before retuen

This commit is contained in:
xiao-77 2024-09-23 14:11:19 +08:00
parent 7db555c788
commit 9e8518e772
1 changed files with 1 additions and 0 deletions

View File

@ -936,6 +936,7 @@ int32_t tsdbCacheDropSubTables(STsdb *pTsdb, SArray *uids, tb_uid_t suid) {
if (code != TSDB_CODE_SUCCESS) {
tsdbError("vgId:%d, %s drop table column failed at line %d since %s", TD_VID(pTsdb->pVnode), __func__, __LINE__,
tstrerror(code));
taosMemoryFree(pTSchema);
(void)taosThreadMutexUnlock(&pTsdb->lruMutex);
TAOS_RETURN(code);
}