BUG/MINOR: quic: Wrong RX packet reference counter usage
No need to call free_quic_rx_packet() after calling quic_rx_packet_eb64_delete()
as this latter already calls quic_rx_packet_refdec() also called by
free_quic_rx_packet().
diff --git a/src/xprt_quic.c b/src/xprt_quic.c
index cb00c02..074cc60 100644
--- a/src/xprt_quic.c
+++ b/src/xprt_quic.c
@@ -2492,7 +2492,6 @@
QUIC_EV_CONN_ELRXPKTS, ctx->conn);
node = eb64_next(node);
quic_rx_packet_eb64_delete(&pkt->pn_node);
- free_quic_rx_packet(pkt);
goto err;
}
@@ -2500,7 +2499,6 @@
}
node = eb64_next(node);
quic_rx_packet_eb64_delete(&pkt->pn_node);
- free_quic_rx_packet(pkt);
}
if (!qc_treat_rx_crypto_frms(el, ctx))