Merge pull request #20952 from taosdata/fix/TD-23639

fix: fix double free caused crash
This commit is contained in:
dapan1121 2023-04-18 17:50:45 +08:00 committed by GitHub
commit 2af63992ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -4251,8 +4251,8 @@ static int32_t doOpenReaderImpl(STsdbReader* pReader) {
}
static void freeSchemaFunc(void* param) {
void* p = *(void**)param;
taosMemoryFree(p);
void **p = (void **)param;
taosMemoryFreeClear(*p);
}
// ====================================== EXPOSED APIs ======================================