mem leak solved