Initialize it to NULL early so that we won't try to free an uninitialized variable when handling an error.