diff --git a/src/cc65/swstmt.c b/src/cc65/swstmt.c index 3c541c93d..f085754d6 100644 --- a/src/cc65/swstmt.c +++ b/src/cc65/swstmt.c @@ -225,6 +225,9 @@ void SwitchStatement (void) /* Eat the closing curly brace */ NextToken (); + + /* Free the case value tree */ + FreeCaseNodeColl (Nodes); /* End the loop */ DelLoop ();