Core/NetworkIO: Fix memory leak

Packet headers not being correctly deallocated.