From 33f15491deebf0eaebd2c1de17dea338165314b7 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Tue, 24 Nov 2026 18:14:15 +0100 Subject: [PATCH] quic: fix eternal handle leak for HTTP/3 known header names Signed-off-by: Tim Perry --- src/node_http_common-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_http_common-inl.h b/src/node_http_common-inl.h index 339e5a612312..f37830fe5168 100644 --- a/src/node_http_common-inl.h +++ b/src/node_http_common-inl.h @@ -157,7 +157,7 @@ v8::MaybeLocal NgHeader::GetName( // a statically defined name. We can safely internalize it here. if (header_name != nullptr) { auto& static_str_map = env_->isolate_data()->static_str_map; - v8::Eternal eternal = static_str_map[header_name]; + v8::Eternal& eternal = static_str_map[header_name]; if (eternal.IsEmpty()) { v8::Local str = OneByteString(env_->isolate(), header_name); eternal.Set(env_->isolate(), str);