diff --git a/js/src/wasm/WasmTypes.h b/js/src/wasm/WasmTypes.h index 9073d49dc313..38a829e274b0 100644 --- a/js/src/wasm/WasmTypes.h +++ b/js/src/wasm/WasmTypes.h @@ -1531,7 +1531,7 @@ static_assert(offsetof(TlsData, globalArea) % TlsDataAlign == 0, "aligned"); struct TlsDataDeleter { - void operator()(TlsData* tlsData) { js_free(tlsData); } + void operator()(TlsData* tlsData) { js_free(tlsData->allocatedBase); } }; typedef UniquePtr UniqueTlsData;