Fixed some error leak.