Fix leakage of tx_ring memory