Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transformer): fix memory leak in
ReplaceGlobalDefines
(#6224)
`ReplaceGlobalDefines` was putting a `String` into the arena. `String` allocates on the heap, so this was a memory leak because it didn't get dropped when the allocator is dropped. This was caught by Miri. Allocate a string slice instead.
- Loading branch information