--- ../src/tar.c
+++ ../src/tar.c
@@ -137,10 +137,12 @@
 ** Finish constructing the tarball.  Put the content of the tarball
 ** in Blob pOut.
 */
 static void tar_finish(Blob *pOut){
   db_multi_exec("DROP TABLE dir");
+  gzip_step(tball.zSpaces, 512);
+  gzip_step(tball.zSpaces, 512);
   gzip_finish(pOut);
   fossil_free(tball.aHdr);
   tball.aHdr = 0;
 }

