summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-04-04 21:33:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-04-04 21:33:16 +0100
commitf44c27071ebedd81c69c768010ed5332964ca0bd (patch)
tree2eaff2084ebe03265c4361ffdeee083e21bd2c97 /sal
parent594148fe07cc9d758642d511e5c238fdaa9b0940 (diff)
valgrind: fix mem leak
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/rtl/cipher/rtl_cipher.cxx10
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)