mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 00:29:31 +00:00
Fixed a small memory leak
git-svn-id: svn://svn.cc65.org/cc65/trunk@3018 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
0effd47c41
commit
ab78147991
@ -284,9 +284,15 @@ static void FreeMacExp (MacExp* E)
|
||||
/* One macro expansion less */
|
||||
--MacExpansions;
|
||||
|
||||
/* Free the parameter list */
|
||||
/* Free the parameter lists */
|
||||
for (I = 0; I < E->ParamCount; ++I) {
|
||||
xfree (E->Params [I]);
|
||||
/* Free one parameter list */
|
||||
TokNode* N = E->Params[I];
|
||||
while (N) {
|
||||
TokNode* P = N->Next;
|
||||
FreeTokNode (N);
|
||||
N = P;
|
||||
}
|
||||
}
|
||||
xfree (E->Params);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user