fix leak caused by dict entry not being added to GCList

Former-commit-id: d8c1b3b6ec64f63fdff04d53102e4563c2c6764a
This commit is contained in:
malavan 2021-05-26 17:01:51 +00:00
parent fe9f276f95
commit d6fbca3794

View File

@ -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);