From c9104719149491684d2e13bfb8a1b4cb89dc0a44 Mon Sep 17 00:00:00 2001 From: John Sully Date: Wed, 13 Apr 2022 16:22:48 +0000 Subject: [PATCH] Fix leaked reference count to dict --- src/dict.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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