Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3e9cca2ed238612378bfc6f9dfd06f8aafcd6a57
https://github.com/WebKit/WebKit/commit/3e9cca2ed238612378bfc6f9dfd06f8aafcd6a57
Author: Yijia Huang <[email protected]>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M Source/JavaScriptCore/wasm/js/JSWebAssemblyInstance.cpp
Log Message:
-----------
[WASM] Fix Memory Leaks in Wasm::Table for JSWebAssemblyInstance
https://bugs.webkit.org/show_bug.cgi?id=285766
rdar://142702955
Reviewed by Yusuke Suzuki.
JSWebAssemblyInstance::setTable stores a reference to Wasm::Table
in an array of raw Wasm::Table pointers by leaking the references.
Although the array contains raw pointers, these pointers are still
reference-counted. Therefore, JSWebAssemblyInstance should properly
manage their lifecycles by releasing the references when the instance
is about to be destroyed.
* Source/JavaScriptCore/wasm/js/JSWebAssemblyInstance.cpp:
(JSC::JSWebAssemblyInstance::~JSWebAssemblyInstance):
Canonical link: https://commits.webkit.org/288749@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes