found some small leaks with Purify
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user