summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorFrancesco Potortì <pot@gnu.org>1995-03-13 10:47:58 +0000
committerFrancesco Potortì <pot@gnu.org>1995-03-13 10:47:58 +0000
commita8d9bd4b495de374ed0087bd99286f7cbc6631c4 (patch)
tree670e7f32b6d91a5e478730cdbef6017b65100fcd /lib-src
parent25a8d958d19eb812ec50225a1134ee1e98f33a8d (diff)
downloademacs-a8d9bd4b495de374ed0087bd99286f7cbc6631c4.tar.gz
* etags.c (process_file): free (filename) after using it.
(readline_internal): Do not access the char before start of line.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 5c293b6cacf..4c56e58f3ee 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -31,7 +31,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
* 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 @@ process_file (file)
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 @@ readline_internal (linebuffer, stream)
}
if (c == '\n')
{
- if (p[-1] == '\r' && p > buffer)
+ if (p > buffer && p[-1] == '\r')
{
*--p = '\0';
chars_deleted = 2;