Remove unnecessary assignment
Fix allocation/deallocation mismatch