Fix leaked reference count to dict
This commit is contained in:
parent
cb4d9401ae
commit
c910471914
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user