dealt with argv's memory leaks