fix memory leak with free strResult. First pass result by using passResult.