fix pmake
remove duplicit dealocation