From 01b9b67d5ca46e2f6367c9c960d1161ac1677e0d Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 10 Mar 2026 08:12:15 +0100 Subject: [PATCH] MINOR: quic: Use b_alloc_small() to allocate a small buffer Rely on b_alloc_small to allocate a small buffer. --- src/quic_stream.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/quic_stream.c b/src/quic_stream.c index 407ca1efe..a2d0020cd 100644 --- a/src/quic_stream.c +++ b/src/quic_stream.c @@ -462,16 +462,12 @@ struct buffer *qc_stream_buf_alloc(struct qc_stream_desc *stream, } } else { - char *area; - - if (!(area = pool_alloc(pool_head_small_buffer))) { + if (!b_alloc_small(&stream->buf->buf)) { pool_free(pool_head_quic_stream_buf, stream->buf); stream->buf = NULL; return NULL; } - stream->buf->sbuf = 1; - stream->buf->buf = b_make(area, global.tune.bufsize_small, 0, 0); } eb64_insert(&stream->buf_tree, &stream->buf->offset_node); -- 2.47.3