working out memleak in readConf.c