fix: memory de-allocation