On 4/13/26 18:14, Ilia Shipitsin wrote:
> ---
> src/quic_rx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/quic_rx.c b/src/quic_rx.c
> index abd9e9fef..6b22ed533 100644
> --- a/src/quic_rx.c
> +++ b/src/quic_rx.c
> @@ -816,7 +816,7 @@ static inline void qc_try_store_new_token(struct server
> *s,
> stok = &s->per_thr[tid].quic_retry_token;
> stok_ptr = istptr(*stok);
> if (len > istlen(*stok)) {
> - stok_ptr = realloc(stok_ptr, len);
> + stok_ptr = my_realloc2(stok_ptr, len);
> if (stok_ptr)
> s->per_thr[tid].quic_retry_token.ptr = stok_ptr;
> else {
Hello,
There is no memleak here. <stok_ptr> is a local copy of the pointer
istptr(stok). So, this cannot lead to a leak it the original pointer
value has been saved. This is the case thanks to <stok>.