Memory leak in core data allocation fixed