not freeing pathv and added new line in init warning message