change: no need to typecast for invoke the pdealloc macro.