diff --git a/src/mux_quic.c b/src/mux_quic.c index 68b2bd8a5..6cc7756d8 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -189,8 +189,12 @@ static void qc_free_ncbuf(struct qcs *qcs, struct ncbuf *ncbuf) { struct buffer buf; + if (ncb_is_null(ncbuf)) + return; + buf = b_make(ncbuf->area, ncbuf->size, 0, 0); b_free(&buf); + offer_buffers(NULL, 1); *ncbuf = NCBUF_NULL; }