| Index: runtime/vm/parser.cc
|
| diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
|
| index 7c250ae19bfe476a5993b800a04577af032aa4cd..62dc8e3800dacf0a0ac7bc9c223676c88fe3953a 100644
|
| --- a/runtime/vm/parser.cc
|
| +++ b/runtime/vm/parser.cc
|
| @@ -9918,7 +9918,7 @@ AstNode* Parser::ParseJump(String* label_name) {
|
| ReportError(jump_pos, "label '%s' not found", target_name.ToCString());
|
| }
|
| } else if (FLAG_enable_debug_break && (CurrentToken() == Token::kSTRING)) {
|
| - const char* message = strdup(CurrentLiteral()->ToCString());
|
| + const char* message = Z->MakeCopyOfString(CurrentLiteral()->ToCString());
|
| ConsumeToken();
|
| return new (Z) StopNode(jump_pos, message);
|
| } else {
|
|
|