Congratuliations on proving how easy it is to convert working code to broken one using goto. Those pointers need to be initialized to NULL for your code...