make sure we don't free potential unitialized pointer