found some small leaks with Purify
This commit is contained in:
parent
3b80847a9d
commit
f2cfe32e03
3 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,7 @@ AtEoIF()
|
||||||
/* Make the unstacking of input streams noticable to the
|
/* Make the unstacking of input streams noticable to the
|
||||||
lexical analyzer
|
lexical analyzer
|
||||||
*/
|
*/
|
||||||
|
if (WorkingDir[0] != '\0') free(WorkingDir);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@ DoOption(text)
|
||||||
register int i;
|
register int i;
|
||||||
register char *new = text;
|
register char *new = text;
|
||||||
|
|
||||||
if (++nDEF > mDEF) {
|
if (nDEF > mDEF) {
|
||||||
DEFPATH = (char **)
|
DEFPATH = (char **)
|
||||||
Realloc((char *)DEFPATH,(unsigned)(mDEF+=10)*sizeof(char *));
|
Realloc((char *)DEFPATH,(unsigned)(mDEF+=10)*sizeof(char *));
|
||||||
}
|
}
|
||||||
|
@ -149,6 +149,7 @@ DoOption(text)
|
||||||
DEFPATH[i] = new;
|
DEFPATH[i] = new;
|
||||||
new = tmp;
|
new = tmp;
|
||||||
}
|
}
|
||||||
|
++nDEF;
|
||||||
}
|
}
|
||||||
else DEFPATH[ndirs] = 0;
|
else DEFPATH[ndirs] = 0;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -193,6 +193,7 @@ node_warning(exportlist, W_OLDFASHIONED, "export list in definition module ignor
|
||||||
DefinitionModule--;
|
DefinitionModule--;
|
||||||
match_id(dot.TOK_IDF, df->df_idf);
|
match_id(dot.TOK_IDF, df->df_idf);
|
||||||
df->df_flags &= ~D_BUSY;
|
df->df_flags &= ~D_BUSY;
|
||||||
|
free(FileName);
|
||||||
}
|
}
|
||||||
'.'
|
'.'
|
||||||
;
|
;
|
||||||
|
|
Loading…
Add table
Reference in a new issue