diff --git a/write.c b/write.c index 958dc1a..2c291e6 100644 --- a/write.c +++ b/write.c @@ -93,10 +93,9 @@ void pixz_write(bool tar, uint32_t level) { } // file index - if (gTar) { + if (gTar) write_file_index(); - free_file_index(); - } + free_file_index(); // post-block cleanup: index, footer encode_index();