aof.c/rewriteAppendOnlyFile:switch inside goto to werrReleaseDI

dictReleaseIterator() does not set di to NULL
So,  the line `if (di) dictReleaseIterator(di);` may free the di twice, which may cause memory error.