mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Fix memory leak with bumpalo String
This commit is contained in:
parent
be77d887db
commit
4b901814f7
1 changed files with 3 additions and 2 deletions
|
@ -1083,11 +1083,12 @@ fn loc_ident_pattern<'a>(min_indent: u16) -> impl Parser<'a, Located<Pattern<'a>
|
|||
} else {
|
||||
format!("{}.{}", module_name, parts.join("."))
|
||||
};
|
||||
|
||||
Ok((
|
||||
Located {
|
||||
region: loc_ident.region,
|
||||
value: Pattern::Malformed(arena.alloc(malformed_str)),
|
||||
value: Pattern::Malformed(
|
||||
String::from_str_in(&malformed_str, &arena).into_bump_str(),
|
||||
),
|
||||
},
|
||||
state,
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue