Fix a mem leak