Avoid leaking memory when processing _Generic expressions.

This commit is contained in:
Stephen Heumann 2021-09-07 19:30:57 -05:00
parent 9c04b94093
commit 99f5e2fc87

View File

@ -1967,6 +1967,11 @@ var
end; {while} end; {while}
if token.kind <> rparench then if token.kind <> rparench then
Error(12); Error(12);
while typesSeen <> nil do begin {dispose of the list of types seen}
tl := typesSeen^.next;
dispose(typesSeen);
typesSeen := tl;
end; {while}
if not foundMatch then {use default if no match found} if not foundMatch then {use default if no match found}
if foundDefault then if foundDefault then