net/packet: fix memory leak in packet_set_ring()