Fix a stack corruption in ExtendedTrace.

Fixes issue 6454.
Fix a memory leak in ExpressionParser.cpp

Because there's a return here, expr should be deleted since it's not assigned to anything before returning.