Moved memory deallocation command

Oops