From d6fbca3794f2a5016f3af758e64f2dafb44eae62 Mon Sep 17 00:00:00 2001 From: malavan Date: Wed, 26 May 2021 17:01:51 +0000 Subject: [PATCH] fix leak caused by dict entry not being added to GCList Former-commit-id: d8c1b3b6ec64f63fdff04d53102e4563c2c6764a --- src/dict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dict.cpp b/src/dict.cpp index 88ad116bb..b37b35a6a 100644 --- a/src/dict.cpp +++ b/src/dict.cpp @@ -673,7 +673,7 @@ static dictEntry *dictGenericDelete(dict *d, const void *key, int nofree) { if (!nofree) { if (table == 0 && d->asyncdata != nullptr && (ssize_t)idx < d->rehashidx) { he->next = d->asyncdata->deGCList; - d->asyncdata->deGCList = he->next; + d->asyncdata->deGCList = he; } else { dictFreeKey(d, he); dictFreeVal(d, he);