[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - comphelper/source
Caolán McNamara
caolanm at redhat.com
Sat Oct 28 02:24:33 UTC 2017
comphelper/source/misc/docpasswordhelper.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit f95ec59f035ef1f6e9bd2a24e9d69e35edd6e089
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Oct 27 17:00:41 2017 +0100
fix memory leak
Change-Id: I6683ab0d39dbbb5c0ba0958d72f0a1bbfab47164
Reviewed-on: https://gerrit.libreoffice.org/43955
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/comphelper/source/misc/docpasswordhelper.cxx b/comphelper/source/misc/docpasswordhelper.cxx
index 0ca3c01a55ab..042421ac29d0 100644
--- a/comphelper/source/misc/docpasswordhelper.cxx
+++ b/comphelper/source/misc/docpasswordhelper.cxx
@@ -337,6 +337,8 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence(
// Erase KeyData array and leave.
rtl_secureZeroMemory (pKeyData, sizeof(pKeyData));
+
+ rtl_digest_destroy(hDigest);
}
return aResultKey;
More information about the Libreoffice-commits
mailing list