| Index: native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc
|
| diff --git a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc
|
| index 95809996b8bf6c01800b3a03f8dc59e130bf9d6a..03263fc53c467dbf88e0f260b44a86a09156ea35 100644
|
| --- a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc
|
| +++ b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc
|
| @@ -226,11 +226,11 @@ Error HttpFs::Init(const FsInitArgs& args) {
|
|
|
| error = ParseManifest(text);
|
| if (error) {
|
| - delete[] text;
|
| + free(text);
|
| return error;
|
| }
|
|
|
| - delete[] text;
|
| + free(text);
|
| } else if (iter->first == "allow_cross_origin_requests") {
|
| allow_cors_ = iter->second == "true";
|
| } else if (iter->first == "allow_credentials") {
|
| @@ -396,7 +396,7 @@ Error HttpFs::LoadManifest(const std::string& manifest_name,
|
| if (error)
|
| return error;
|
|
|
| - char* text = new char[size + 1];
|
| + char* text = (char*)malloc(size + 1);
|
| int len;
|
| error = manifest_node->Read(HandleAttr(), text, size, &len);
|
| if (error)
|
|
|