correcting small memory leak, removing unnecessary pointer checks (Theo)

No match.