Explorar o código

(add_chunk_header): Free st.orig_file_name after calling finish_header()

Sergey Poznyakoff %!s(int64=19) %!d(string=hai) anos
pai
achega
588f444efe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/buffer.c

+ 1 - 1
src/buffer.c

@@ -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);
     }
 }