fixed memory leaks in part1 of mp0