Move these `Check_Types` before the `xmalloc` in line 233 so it doesn't leak.