From a83729e9e606aa2ab4e78981799e001e2f38eb45 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Thu, 23 Dec 2021 11:30:11 +0100 Subject: [PATCH] MINOR: quic: remove unnecessary call to free_quic_conn_cids() free_quic_conn_cids() was called in quic_build_post_handshake_frames() if an error occured. However, the only error is an allocation failure of the CID which does not required to call it. This change is required for future refcount implementation. The CID lock will be removed from the free_quic_conn_cids() and to the caller. --- src/xprt_quic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 500814fd1..5874d1c35 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -2687,7 +2687,6 @@ static int quic_build_post_handshake_frames(struct quic_conn *qc) return 1; err: - free_quic_conn_cids(qc); return 0; }