fix: add null check for TLS compression pointer

This commit is contained in:
George V. committed 2026-04-13 18:31:01 +03:00
1 parent fd21c3bc0e
commit 4191b654b2
1 file changed
+3
+3
View File
@@ -51,6 +51,9 @@ void Compression::ReleaseThreadStorage()
Compression *Compression::getCompression()
{
const ThreadStorage *tls = static_cast<ThreadStorage *>(TlsGetValue(tlsIdx));
if (!tls) {
return nullptr;
}
return tls->compression;
}