Fix leaked reference count to dict

This commit is contained in:
John Sully 2022-04-13 16:22:48 +00:00 committed by John Sully
parent cb4d9401ae
commit c910471914

View File

@ -526,9 +526,6 @@ void dictCompleteRehashAsync(dictAsyncRehashCtl *ctl, bool fFree) {
if (fFree) {
d->type->asyncfree(ctl);
// Remove our reference
dictRelease(d);
}
}
@ -548,6 +545,7 @@ dictAsyncRehashCtl::~dictAsyncRehashCtl() {
zfree(deGCList);
deGCList = next;
}
dictRelease(this->dict);
}
/* Rehash in ms+"delta" milliseconds. The value of "delta" is larger