found some small leaks with Purify

This commit is contained in:
ceriel
1993-01-18 15:10:01 +00:00
parent ba62ce0edc
commit 439ec389a0
5 changed files with 21 additions and 11 deletions

View File

@@ -155,7 +155,7 @@ next_option: /* to allow combined one-char options */
int i;
register char *new = text;
if (++inc_total > inc_max) {
if (inc_total >= inc_max) {
inctable = (char **)
Realloc((char *)inctable,
(unsigned)((inc_max+=10)*sizeof(char *)));
@@ -167,6 +167,7 @@ next_option: /* to allow combined one-char options */
inctable[i] = new;
new = tmp;
}
inc_total++;
}
else inctable[inc_pos] = 0;
break;