fix memory leak during comment analysis