| Index: src/objects-printer.cc
|
| diff --git a/src/objects-printer.cc b/src/objects-printer.cc
|
| index 75e2ed19de27d39012398dad69bc9c90c9abb1bc..b3d7ec7fe3accb84e8f806676170df8173dabcc1 100644
|
| --- a/src/objects-printer.cc
|
| +++ b/src/objects-printer.cc
|
| @@ -595,7 +595,7 @@ char* String::ToAsciiArray() {
|
| // Static so that subsequent calls frees previously allocated space.
|
| // This also means that previous results will be overwritten.
|
| static char* buffer = NULL;
|
| - if (buffer != NULL) free(buffer);
|
| + if (buffer != NULL) delete [] buffer;
|
| buffer = new char[length()+1];
|
| WriteToFlat(this, reinterpret_cast<uint8_t*>(buffer), 0, length());
|
| buffer[length()] = 0;
|
|
|