diff --git a/src/rdb.c b/src/rdb.c index 0bd4ee1bab..764b87a482 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -2332,6 +2332,7 @@ robj *rdbLoadObject(int rdbtype, rio *rdb, sds key, int dbid, int *error) rdbReportCorruptRDB("invalid expireAt time: %llu", (unsigned long long) expireAt); decrRefCount(o); + if (dupSearchDict != NULL) dictRelease(dupSearchDict); return NULL; }