Memory leaks removed - in xml parsing. Some leaks are still there in parse_repo thanks to dirent.h library. Need to use boost to parse ini files