Using PacketGetFromAlloc() to clean up code

This change replaces memory allocation plus PACKET_INITIALIZE() with the cleaner PacketGetFromAlloc().

There is no change in functionality.