Fix mismatching allocation and deallocation