1. malloc failing and returning null; but, it should have issues sooner.
2. tree->root being NULL

Tim S.