mirror of
https://github.com/redis/redis.git
synced 2026-06-09 00:33:08 -04:00
Fix memory leak on rdbload error (#13626)
On RDB load error, if an invalid `expireAt` value is read, `dupSearchDict` is not released.
This commit is contained in:
parent
4b29be3f36
commit
6437d07b03
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue