fix invalid free
This commit is contained in:
parent
9dd3f326ea
commit
01e9ae6299
|
@ -2740,7 +2740,7 @@ int32_t streamStateGetGroupKVByCur_rocksdb(SStreamStateCur* pCur, SWinKey* pKey,
|
||||||
if (pKey->groupId == groupId) {
|
if (pKey->groupId == groupId) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
taosMemoryFree((void*)*pVal);
|
if (pVal != NULL) taosMemoryFree((void*)*pVal);
|
||||||
*pVal = NULL;
|
*pVal = NULL;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue