Packet update

Fixes memory leak