Fix a memory allocation bug in the ZIP archive generator.
Ticket [8d6efe4f927]