APUE: exit handler typedef && malloc pointer not initilize.