[NGRINDER-465] Add dirty fix on the memory leak