diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 6 | ||||
| -rw-r--r-- | lib-src/etags.c | 13 |
2 files changed, 17 insertions, 2 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 115e43c2d03..2e8581a6f57 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 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 | |||
| 1 | 2006-04-29 Dan Nicolaescu <dann@ics.uci.edu> | 7 | 2006-04-29 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 8 | ||
| 3 | * sorted-doc.c (main): Initialize docs to NULL. | 9 | * sorted-doc.c (main): Initialize docs to NULL. |
diff --git a/lib-src/etags.c b/lib-src/etags.c index a7c98f090bb..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 | ||