]> Dogcows Code - chaz/tar/commitdiff
(add_chunk_header): Free st.orig_file_name after calling finish_header()
authorSergey Poznyakoff <gray@gnu.org.ua>
Sun, 19 Feb 2006 20:36:31 +0000 (20:36 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sun, 19 Feb 2006 20:36:31 +0000 (20:36 +0000)
src/buffer.c

index 1b36051e19c784f7e5588162c8f7b06a92ea2f3c..9b6a11a8c6e59ba48f20d066bf355802086bc73e 100644 (file)
@@ -1285,10 +1285,10 @@ add_chunk_header ()
 
       block_ordinal = current_block_ordinal ();
       blk = start_header (&st);
-      free (st.orig_file_name);
       if (!blk)
        abort (); /* FIXME */
       finish_header (&st, blk, block_ordinal);
+      free (st.orig_file_name);
     }
 }
 
This page took 0.030871 seconds and 4 git commands to generate.