Fixed mem leak.