summaryrefslogtreecommitdiffstats
path: root/mojo
diff options
context:
space:
mode:
authorzhaoqin@google.com <zhaoqin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-07 15:18:42 +0000
committerzhaoqin@google.com <zhaoqin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-07 15:18:42 +0000
commitf07f7c151de4135543ac47d4b53a27a4b23a5ea0 (patch)
tree62c649214e8435baa7b00a62edfbaadd73b10600 /mojo
parent03e2266365c7d9864ba1e0357cd8234751fb247e (diff)
downloadchromium_src-f07f7c151de4135543ac47d4b53a27a4b23a5ea0.zip
chromium_src-f07f7c151de4135543ac47d4b53a27a4b23a5ea0.tar.gz
chromium_src-f07f7c151de4135543ac47d4b53a27a4b23a5ea0.tar.bz2
fixed memory leak from mojo_public_bindings_unittests FixedBufferTest.Leak
- remove the buf_ptr declaration in the block BUG=370569 R=darin@chromium.org, viettrungluu@chromium.org TEST=manual Review URL: https://codereview.chromium.org/266043006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268776 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo')
-rw-r--r--mojo/public/cpp/bindings/tests/buffer_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/mojo/public/cpp/bindings/tests/buffer_unittest.cc b/mojo/public/cpp/bindings/tests/buffer_unittest.cc
index 1487ced..e96b406 100644
--- a/mojo/public/cpp/bindings/tests/buffer_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/buffer_unittest.cc
@@ -121,7 +121,7 @@ TEST(FixedBufferTest, Leak) {
ptr = buf.Allocate(8);
ASSERT_TRUE(ptr);
- void* buf_ptr = buf.Leak();
+ buf_ptr = buf.Leak();
// The buffer should point to the first element allocated.
// TODO(mpcomplete): Is this a reasonable expectation?