1
0
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:
cuz 2004-05-10 21:06:53 +00:00
parent 0effd47c41
commit ab78147991

View File

@ -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);