Added Some Missing Error Checking on Automatic Free.