Fix uninitialized pointer and memory leak
Fix uninitialized pointer and memory leak

Helpfully reported by Clang static analysis

DemiMarie/SlipRock,DemiMarie/SlipRock,DemiMarie/SlipRock,DemiMarie/SlipRock,DemiMarie/SlipRock