diff --git a/src/dict.cpp b/src/dict.cpp index 34efe1e82..e280d6071 100644 --- a/src/dict.cpp +++ b/src/dict.cpp @@ -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