Added deletions of AliPID object to avoid meamory leak