Merge pull request #28006 from taosdata/fix/addRefException

fix: addRefException
This commit is contained in:
Pan Wei 2024-09-23 09:13:45 +08:00 committed by GitHub
commit b7c5283ca8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,8 @@ int64_t taosAddRef(int32_t rsetId, void *p) {
pNode = taosMemoryCalloc(sizeof(SRefNode), 1);
if (pNode == NULL) {
taosDecRsetCount(pSet);
uError("rsetId:%d p:%p failed to add, out of memory", rsetId, p);
return terrno;
}