texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/info nodes.c,1.3,1.4


From: karl
Subject: texinfo/info nodes.c,1.3,1.4
Date: Sun, 4 Apr 2004 18:08:07 +0200

Update of /cvsroot/texinfo/texinfo/info
In directory sheep:/tmp/cvs-serv12369

Modified Files:
        nodes.c 
Log Message:
2004-04-04  Jim Meyering  <address@hidden>

        * info/nodes.c (info_load_file_internal): Don't free lowered_name
        until *after* using fullpath, since they may be one and the same.


Index: nodes.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/info/nodes.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** nodes.c     14 Mar 2004 00:57:30 -0000      1.3
--- nodes.c     4 Apr 2004 16:08:04 -0000       1.4
***************
*** 19,23 ****
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  
!    Written by Brian Fox (address@hidden). */
  
  #include "info.h"
--- 19,23 ----
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  
!    Originally written by Brian Fox (address@hidden). */
  
  #include "info.h"
***************
*** 345,351 ****
  
        fullpath = info_find_fullpath (lowered_name);
-       free (lowered_name);
  
        retcode = stat (fullpath, &finfo);
      }
  
--- 345,351 ----
  
        fullpath = info_find_fullpath (lowered_name);
  
        retcode = stat (fullpath, &finfo);
+       free (lowered_name);
      }
  



reply via email to

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