Fix memory leak when printing any error's source code. (#12831)

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
dave caruso
2024-07-26 14:14:16 -07:00
committed by GitHub
parent 7aa05ec542
commit bf8b6922bb
6 changed files with 72 additions and 20 deletions

View File

@@ -277,7 +277,7 @@ pub const Tag = enum(u8) {
/// into a WTF::String.
/// Can be in either `utf8` or `utf16le` encodings.
ZigString = 2,
/// Static memory that is guarenteed to never be freed. When converted to WTF::String,
/// Static memory that is guaranteed to never be freed. When converted to WTF::String,
/// the memory is not cloned, but instead referenced with WTF::ExternalStringImpl.
/// Can be in either `utf8` or `utf16le` encodings.
StaticZigString = 3,