Fixed memory leak

Why was that even there?