Fixed memory leak problem (task 0)
Stripped whitespaces and retabbed