global leak detected as a result of syntax error