Fix memory leak.

Release InArchive and OutArchive.