mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 07:30:54 +00:00
Avoid leaking memory when processing _Generic expressions.
This commit is contained in:
parent
9c04b94093
commit
99f5e2fc87
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user