Freed memory

I wrote this in a hurry and forgot to delete after allocating memory.