You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix memory leaks in addCapability and addConditionalCapability (#3403)
Compiling with `-fsanitize=address` uncovered 2 memory leaks related to
the use of raw pointers in `addCapability` and
`addConditionalCapability`.
Instead of manually handling memory, use `std::unique_ptr` to track the
ownership of the pointed object and free the memory for us.
Original commit:
KhronosGroup/SPIRV-LLVM-Translator@c11cd5ba1bf8bdc
0 commit comments