changeset 10990:c0ceaa45ded7

* etags.c (process_file): free (filename) after using it. (readline_internal): Do not access the char before start of line.
author Francesco Potortì <pot@gnu.org>
date Mon, 13 Mar 1995 10:47:58 +0000
parents f4693d66f90c
children 84debff7a6e0
files lib-src/etags.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/etags.c	Mon Mar 13 06:31:48 1995 +0000
+++ b/lib-src/etags.c	Mon Mar 13 10:47:58 1995 +0000
@@ -31,7 +31,7 @@
  *	Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer.
  */
 
-char pot_etags_version[] = "@(#) pot revision number is 11.25";
+char pot_etags_version[] = "@(#) pot revision number is 11.26";
 
 #define	TRUE	1
 #define	FALSE	0
@@ -1044,6 +1044,7 @@
 	  filename = relative_filename (file, tagfiledir);
 	}
       fprintf (tagf, "\f\n%s,%d\n", filename, total_size_of_entries (head));
+      free (filename);
       put_entries (head);
       free_tree (head);
       head = NULL;
@@ -3448,7 +3449,7 @@
 	}
       if (c == '\n')
 	{
-	  if (p[-1] == '\r' && p > buffer)
+	  if (p > buffer && p[-1] == '\r')
 	    {
 	      *--p = '\0';
 	      chars_deleted = 2;