Fixed memory leak related to MPWPath and added comment for other possible memory leak