Fix a memleak
Fix a wrong indentation