delete packet pointer after handelling receive packet