diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 20 | ||||
| -rw-r--r-- | lib-src/etags.c | 14 | ||||
| -rw-r--r-- | lib-src/fakemail.c | 2 | ||||
| -rw-r--r-- | lib-src/movemail.c | 2 | ||||
| -rw-r--r-- | lib-src/sorted-doc.c | 2 | ||||
| -rw-r--r-- | lib-src/yow.c | 1 |
6 files changed, 37 insertions, 4 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index a38c0cb6770..2e8581a6f57 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2006-05-02 Francesco Potort,Al(B <pot@gnu.org> | ||
| 2 | |||
| 3 | * etags.c (Perl_functions): Free space allocated for var package. | ||
| 4 | (Erlang_functions): Possibly free space allocated for var last. | ||
| 5 | (Prolog_functions): Possibly free space allocated for var last. | ||
| 6 | |||
| 7 | 2006-04-29 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 8 | |||
| 9 | * sorted-doc.c (main): Initialize docs to NULL. | ||
| 10 | |||
| 11 | * yow.c (yow): Free buf. | ||
| 12 | |||
| 13 | * etags.c: Delete c-indentation-style local variable. | ||
| 14 | |||
| 15 | 2006-04-29 Richard Stallman <rms@gnu.org> | ||
| 16 | |||
| 17 | * movemail.c (main): Check for negative value from `read'. | ||
| 18 | |||
| 19 | * fakemail.c (read_header): Give fatal error if input has no header. | ||
| 20 | |||
| 1 | 2006-04-02 Paul Eggert <eggert@cs.ucla.edu> | 21 | 2006-04-02 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 22 | ||
| 3 | * b2m.c (main): Don't include <limits.h>. | 23 | * b2m.c (main): Don't include <limits.h>. |
diff --git a/lib-src/etags.c b/lib-src/etags.c index a073acb92d6..e206443f39b 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -41,7 +41,7 @@ | |||
| 41 | * configuration file containing regexp definitions for etags. | 41 | * configuration file containing regexp definitions for etags. |
| 42 | */ | 42 | */ |
| 43 | 43 | ||
| 44 | char pot_etags_version[] = "@(#) pot revision number is 17.15"; | 44 | char pot_etags_version[] = "@(#) pot revision number is 17.17"; |
| 45 | 45 | ||
| 46 | #define TRUE 1 | 46 | #define TRUE 1 |
| 47 | #define FALSE 0 | 47 | #define FALSE 0 |
| @@ -4543,6 +4543,7 @@ Perl_functions (inf) | |||
| 4543 | lb.buffer, cp - lb.buffer + 1, lineno, linecharno); | 4543 | lb.buffer, cp - lb.buffer + 1, lineno, linecharno); |
| 4544 | } | 4544 | } |
| 4545 | } | 4545 | } |
| 4546 | free (package); | ||
| 4546 | } | 4547 | } |
| 4547 | 4548 | ||
| 4548 | 4549 | ||
| @@ -5441,6 +5442,8 @@ Prolog_functions (inf) | |||
| 5441 | last[len] = '\0'; | 5442 | last[len] = '\0'; |
| 5442 | } | 5443 | } |
| 5443 | } | 5444 | } |
| 5445 | if (last != NULL) | ||
| 5446 | free (last); | ||
| 5444 | } | 5447 | } |
| 5445 | 5448 | ||
| 5446 | 5449 | ||
| @@ -5597,7 +5600,11 @@ Erlang_functions (inf) | |||
| 5597 | else if (cp[0] == '-') /* attribute, e.g. "-define" */ | 5600 | else if (cp[0] == '-') /* attribute, e.g. "-define" */ |
| 5598 | { | 5601 | { |
| 5599 | erlang_attribute (cp); | 5602 | erlang_attribute (cp); |
| 5600 | last = NULL; | 5603 | if (last != NULL) |
| 5604 | { | ||
| 5605 | free (last); | ||
| 5606 | last = NULL; | ||
| 5607 | } | ||
| 5601 | } | 5608 | } |
| 5602 | else if ((len = erlang_func (cp, last)) > 0) | 5609 | else if ((len = erlang_func (cp, last)) > 0) |
| 5603 | { | 5610 | { |
| @@ -5614,6 +5621,8 @@ Erlang_functions (inf) | |||
| 5614 | last[len] = '\0'; | 5621 | last[len] = '\0'; |
| 5615 | } | 5622 | } |
| 5616 | } | 5623 | } |
| 5624 | if (last != NULL) | ||
| 5625 | free (last); | ||
| 5617 | } | 5626 | } |
| 5618 | 5627 | ||
| 5619 | 5628 | ||
| @@ -6887,7 +6896,6 @@ xrealloc (ptr, size) | |||
| 6887 | 6896 | ||
| 6888 | /* | 6897 | /* |
| 6889 | * Local Variables: | 6898 | * Local Variables: |
| 6890 | * c-indentation-style: gnu | ||
| 6891 | * indent-tabs-mode: t | 6899 | * indent-tabs-mode: t |
| 6892 | * tab-width: 8 | 6900 | * tab-width: 8 |
| 6893 | * fill-column: 79 | 6901 | * fill-column: 79 |
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c index 6b8634f34ab..30d39db533e 100644 --- a/lib-src/fakemail.c +++ b/lib-src/fakemail.c | |||
| @@ -694,6 +694,8 @@ read_header () | |||
| 694 | 694 | ||
| 695 | } while (true); | 695 | } while (true); |
| 696 | 696 | ||
| 697 | if (! the_header) | ||
| 698 | fatal ("input message has no header"); | ||
| 697 | return the_header->next; | 699 | return the_header->next; |
| 698 | } | 700 | } |
| 699 | 701 | ||
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index d3ec1fcd178..1f73ee88ba8 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c | |||
| @@ -466,6 +466,8 @@ main (argc, argv) | |||
| 466 | while (1) | 466 | while (1) |
| 467 | { | 467 | { |
| 468 | nread = read (indesc, buf, sizeof buf); | 468 | nread = read (indesc, buf, sizeof buf); |
| 469 | if (nread < 0) | ||
| 470 | pfatal_with_name (inname); | ||
| 469 | if (nread != write (outdesc, buf, nread)) | 471 | if (nread != write (outdesc, buf, nread)) |
| 470 | { | 472 | { |
| 471 | int saved_errno = errno; | 473 | int saved_errno = errno; |
diff --git a/lib-src/sorted-doc.c b/lib-src/sorted-doc.c index a2416993a1b..0a06aa2c984 100644 --- a/lib-src/sorted-doc.c +++ b/lib-src/sorted-doc.c | |||
| @@ -131,7 +131,7 @@ main () | |||
| 131 | register enum state state = WAITING; /* state at start */ | 131 | register enum state state = WAITING; /* state at start */ |
| 132 | int cnt = 0; /* number of DOCSTRs read */ | 132 | int cnt = 0; /* number of DOCSTRs read */ |
| 133 | 133 | ||
| 134 | DOCSTR *docs; /* chain of allocated DOCSTRS */ | 134 | DOCSTR *docs = NULL; /* chain of allocated DOCSTRS */ |
| 135 | char buf[512]; /* line buffer */ | 135 | char buf[512]; /* line buffer */ |
| 136 | 136 | ||
| 137 | while (1) /* process one char at a time */ | 137 | while (1) /* process one char at a time */ |
diff --git a/lib-src/yow.c b/lib-src/yow.c index 1356ac6db18..18f0f7b2e13 100644 --- a/lib-src/yow.c +++ b/lib-src/yow.c | |||
| @@ -176,6 +176,7 @@ yow (fp) | |||
| 176 | } | 176 | } |
| 177 | buf[i++] = 0; | 177 | buf[i++] = 0; |
| 178 | printf("%s\n", buf); | 178 | printf("%s\n", buf); |
| 179 | free (buf); | ||
| 179 | } | 180 | } |
| 180 | 181 | ||
| 181 | /* arch-tag: e40fc0df-bafb-4001-af24-5c883d1c685e | 182 | /* arch-tag: e40fc0df-bafb-4001-af24-5c883d1c685e |