diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-04-04 21:33:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-04-04 21:33:16 +0100 |
commit | f44c27071ebedd81c69c768010ed5332964ca0bd (patch) | |
tree | 2eaff2084ebe03265c4361ffdeee083e21bd2c97 /sal/qa/rtl/cipher | |
parent | 594148fe07cc9d758642d511e5c238fdaa9b0940 (diff) |
valgrind: fix mem leak
Diffstat (limited to 'sal/qa/rtl/cipher')
-rw-r--r-- | sal/qa/rtl/cipher/rtl_cipher.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sal/qa/rtl/cipher/rtl_cipher.cxx b/sal/qa/rtl/cipher/rtl_cipher.cxx index 08343d1411ba..383f56da4b88 100644 --- a/sal/qa/rtl/cipher/rtl_cipher.cxx +++ b/sal/qa/rtl/cipher/rtl_cipher.cxx @@ -232,6 +232,16 @@ public: /* rtlCipherError */ aError = rtl_cipher_decode(aCipher, pCipherBuffer, nCipherLen, pPlainText2Buffer, nPlainText2Len); CPPUNIT_ASSERT_MESSAGE("decode should not work", aError != rtl_Cipher_E_None); + + delete [] pPlainText2Buffer; + + delete [] pCipherBuffer; + delete [] pPlainTextBuffer; + + delete [] pArgBuffer; + delete [] pKeyBuffer; + + rtl_cipher_destroy(aCipher); } void test_encode_and_decode(sal_uInt8 _nKeyValue, sal_uInt8 _nArgValue, rtl::OString const& _sPlainTextStr) |