fixed memory leak on wrong expression parsing