Corrected small, stupid mistake

Fixed memory leaks introduced in last commit