Skip to content

Commit eb7d67a

Browse files
committed
Remove RDB AUX memory leaks
1 parent 36a3b75 commit eb7d67a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rdb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,8 +1324,8 @@ int rdbLoad(char *filename) {
13241324
auxkey->ptr);
13251325
}
13261326

1327-
zfree(auxkey);
1328-
zfree(auxval);
1327+
decrRefCount(auxkey);
1328+
decrRefCount(auxval);
13291329
continue; /* Read type again. */
13301330
}
13311331

0 commit comments

Comments
 (0)