diff options
| author | Francesco Potortì | 1995-03-13 10:47:58 +0000 |
|---|---|---|
| committer | Francesco Potortì | 1995-03-13 10:47:58 +0000 |
| commit | a8d9bd4b495de374ed0087bd99286f7cbc6631c4 (patch) | |
| tree | 670e7f32b6d91a5e478730cdbef6017b65100fcd /lib-src | |
| parent | 25a8d958d19eb812ec50225a1134ee1e98f33a8d (diff) | |
| download | emacs-a8d9bd4b495de374ed0087bd99286f7cbc6631c4.tar.gz emacs-a8d9bd4b495de374ed0087bd99286f7cbc6631c4.zip | |
* 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.c | 5 |
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. */ | |||
| 31 | * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. | 31 | * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. |
| 32 | */ | 32 | */ |
| 33 | 33 | ||
| 34 | char pot_etags_version[] = "@(#) pot revision number is 11.25"; | 34 | char pot_etags_version[] = "@(#) pot revision number is 11.26"; |
| 35 | 35 | ||
| 36 | #define TRUE 1 | 36 | #define TRUE 1 |
| 37 | #define FALSE 0 | 37 | #define FALSE 0 |
| @@ -1044,6 +1044,7 @@ process_file (file) | |||
| 1044 | filename = relative_filename (file, tagfiledir); | 1044 | filename = relative_filename (file, tagfiledir); |
| 1045 | } | 1045 | } |
| 1046 | fprintf (tagf, "\f\n%s,%d\n", filename, total_size_of_entries (head)); | 1046 | fprintf (tagf, "\f\n%s,%d\n", filename, total_size_of_entries (head)); |
| 1047 | free (filename); | ||
| 1047 | put_entries (head); | 1048 | put_entries (head); |
| 1048 | free_tree (head); | 1049 | free_tree (head); |
| 1049 | head = NULL; | 1050 | head = NULL; |
| @@ -3448,7 +3449,7 @@ readline_internal (linebuffer, stream) | |||
| 3448 | } | 3449 | } |
| 3449 | if (c == '\n') | 3450 | if (c == '\n') |
| 3450 | { | 3451 | { |
| 3451 | if (p[-1] == '\r' && p > buffer) | 3452 | if (p > buffer && p[-1] == '\r') |
| 3452 | { | 3453 | { |
| 3453 | *--p = '\0'; | 3454 | *--p = '\0'; |
| 3454 | chars_deleted = 2; | 3455 | chars_deleted = 2; |