Fixed previous commit mem leak