valgrind: memleak in randompool

regression from

commit 91457fb326
Author: Norbert Thiebaud <nthiebaud@gmail.com>
Date:   Tue Apr 21 20:55:15 2015 -0500

    use osl_get_system_random data in rtlRamdomPool

Change-Id: Ib5ff6b7fbd08869d9a6dbc1f4df883d701cf765c
This commit is contained in:
Caolán McNamara
2015-09-18 13:53:32 +01:00
parent 7a77d77eff
commit 5db6ec77d8

View File

@@ -298,8 +298,8 @@ void SAL_CALL rtl_random_destroyPool (rtlRandomPool Pool) SAL_THROW_EXTERN_C()
if(pImpl->m_hDigest)
{
rtl_digest_destroy (pImpl->m_hDigest);
rtl_freeZeroMemory (pImpl, sizeof (RandomPool_Impl));
}
rtl_freeZeroMemory (pImpl, sizeof (RandomPool_Impl));
}
}