Remove some ptr check before free (thx flx42 for pointing that out)