fixing memory leak and bumping version