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
1 changed files with 5 additions and 0 deletions

View File

@ -1967,6 +1967,11 @@ var
end; {while}
if token.kind <> rparench then
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 foundDefault then