mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
fix memory issue in the repl
This commit is contained in:
parent
870adb20a8
commit
5942f64b3c
2 changed files with 6 additions and 1 deletions
|
@ -5342,7 +5342,7 @@ fn define_global_str_literal<'a, 'ctx, 'env>(
|
|||
Some(current) => current,
|
||||
|
||||
None => {
|
||||
let size = message.len() + env.ptr_bytes as usize;
|
||||
let size = message.bytes().len() + env.ptr_bytes as usize;
|
||||
let mut bytes = Vec::with_capacity_in(size, env.arena);
|
||||
|
||||
// insert NULL bytes for the refcount
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue