parser memory leak fixed