diff options
author | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 10:05:26 +0000 |
---|---|---|
committer | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 10:05:26 +0000 |
commit | ea21006666221f2db958e1470903181574dfebc0 (patch) | |
tree | b9343d70eedd63f3b7f4c5e5da48cb0e8aef21ce /net/spdy | |
parent | c251f61b1a16287fb370dbda60e79cfdb39528f3 (diff) | |
download | chromium_src-ea21006666221f2db958e1470903181574dfebc0.zip chromium_src-ea21006666221f2db958e1470903181574dfebc0.tar.gz chromium_src-ea21006666221f2db958e1470903181574dfebc0.tar.bz2 |
Fix new[]/delete mismatch caused by using scoped_ptr<char> to handle strings.
TBR=mbelshe
Review URL: http://codereview.chromium.org/3020046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54299 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy')
-rw-r--r-- | net/spdy/spdy_test_util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/spdy/spdy_test_util.cc b/net/spdy/spdy_test_util.cc index 97c87c0..4d30d0c 100644 --- a/net/spdy/spdy_test_util.cc +++ b/net/spdy/spdy_test_util.cc @@ -276,9 +276,9 @@ spdy::SpdyFrame* ConstructSpdyGet(const char* const url, std::string str_path = gurl.PathForRequest(); std::string str_scheme = gurl.scheme(); std::string str_host = gurl.host(); // TODO(mbelshe): should have a port. - scoped_ptr<char> req(new char[str_path.size() + 1]); - scoped_ptr<char> scheme(new char[str_scheme.size() + 1]); - scoped_ptr<char> host(new char[str_host.size() + 1]); + scoped_array<char> req(new char[str_path.size() + 1]); + scoped_array<char> scheme(new char[str_scheme.size() + 1]); + scoped_array<char> host(new char[str_host.size() + 1]); memcpy(req.get(), str_path.c_str(), str_path.size()); memcpy(scheme.get(), str_scheme.c_str(), str_scheme.size()); memcpy(host.get(), str_host.c_str(), str_host.size()); |