diff --git a/src/aof.c b/src/aof.c index f5a90a12..dc7d1187 100644 --- a/src/aof.c +++ b/src/aof.c @@ -1082,6 +1082,7 @@ int rewriteAppendOnlyFile(char *filename) { } } dictReleaseIterator(di); + di = NULL; } /* Do an initial slow fsync here while the parent is still sending