grep: fix a "path_list" memory leak