diff options
author | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 23:29:35 +0000 |
---|---|---|
committer | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 23:29:35 +0000 |
commit | 82347fd5a40e3ffa1204f587aefd930a6b32fd8a (patch) | |
tree | bfab8fcf869aee043a9f59114e00d38897c98523 /base | |
parent | 98940fdf0611aa314b1a1f5511676a3726c7297d (diff) | |
download | chromium_src-82347fd5a40e3ffa1204f587aefd930a6b32fd8a.zip chromium_src-82347fd5a40e3ffa1204f587aefd930a6b32fd8a.tar.gz chromium_src-82347fd5a40e3ffa1204f587aefd930a6b32fd8a.tar.bz2 |
Fix leak in encryptor_unittest.cc
BUG=none
TEST=valgrind doesn't complain anymore
Review URL: http://codereview.chromium.org/1558010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43283 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/crypto/encryptor_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/crypto/encryptor_unittest.cc b/base/crypto/encryptor_unittest.cc index 218c7ba..b75c360 100644 --- a/base/crypto/encryptor_unittest.cc +++ b/base/crypto/encryptor_unittest.cc @@ -25,7 +25,7 @@ TEST(EncryptorTest, MAYBE(EncryptDecrypt)) { base::Encryptor encryptor; // The IV must be exactly as long a the cipher block size. std::string iv("the iv: 16 bytes"); - EXPECT_TRUE(encryptor.Init(key.release(), base::Encryptor::CBC, iv)); + EXPECT_TRUE(encryptor.Init(key.get(), base::Encryptor::CBC, iv)); std::string plaintext("this is the plaintext"); std::string ciphertext; |