From f44c27071ebedd81c69c768010ed5332964ca0bd Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 4 Apr 2011 21:33:16 +0100 Subject: valgrind: fix mem leak --- sal/qa/rtl/cipher/rtl_cipher.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sal') 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) -- cgit