diff --git a/src/aof.c b/src/aof.c index 90b67fd9..63bde53c 100644 --- a/src/aof.c +++ b/src/aof.c @@ -1038,6 +1038,7 @@ int rewriteAppendOnlyFile(char *filename) { } } dictReleaseIterator(di); + di = NULL; } /* Make sure data will not remain on the OS's output buffers */