texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo/makeinfo makeinfo.c,1.62,1.63


From: karl
Subject: texinfo/makeinfo makeinfo.c,1.62,1.63
Date: Fri, 9 Apr 2004 23:17:19 +0200

Update of /cvsroot/texinfo/texinfo/makeinfo
In directory sheep:/tmp/cvs-serv24784

Modified Files:
        makeinfo.c 
Log Message:
(execute_string): do not free the temporary copy
of input_filename until we're definitely done with
it.  It is used in line_error, etc.


Index: makeinfo.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/makeinfo/makeinfo.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -d -r1.62 -r1.63
*** makeinfo.c  6 Apr 2004 20:53:17 -0000       1.62
--- makeinfo.c  9 Apr 2004 21:17:17 -0000       1.63
***************
*** 3903,3907 ****
  {
    EXECUTION_STRING *es;
!   char *temp_string;
  #ifdef VA_FPRINTF
    va_list ap;
--- 3903,3907 ----
  {
    EXECUTION_STRING *es;
!   char *temp_string, *temp_input_filename;
  #ifdef VA_FPRINTF
    va_list ap;
***************
*** 3924,3933 ****
    input_text_offset = 0;
    input_text = temp_string;
-   input_filename = xstrdup (input_filename);
    input_text_length = strlen (temp_string);
  
    executing_string++;
    reader_loop ();
-   free (input_filename);
  
    /* If insertion stack level changes during execution, that means a multiline
--- 3924,3933 ----
    input_text_offset = 0;
    input_text = temp_string;
    input_text_length = strlen (temp_string);
+   input_filename = xstrdup (input_filename);
+   temp_input_filename = input_filename;
  
    executing_string++;
    reader_loop ();
  
    /* If insertion stack level changes during execution, that means a multiline
***************
*** 3947,3950 ****
--- 3947,3951 ----
    executing_string--;
    es->in_use = 0;
+   free (temp_input_filename);
  }
  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]