packet: fix leakage of tx_ring memory