-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Wasm] Fix memory leak in expression construction.
A missing call of `release()` when re-assigning the unique pointer caused a memory leak which was only detetcted by the ASAN on our Linux build bot. Use `std::optional` instead to solve this issue and match the other expression constructions.
- Loading branch information
1 parent
1858b9c
commit b6818f9
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters