fix memory leak

Change-Id: I6683ab0d39dbbb5c0ba0958d72f0a1bbfab47164
Reviewed-on: https://gerrit.libreoffice.org/43954
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2017-10-27 17:00:41 +01:00
parent b3ec92eaab
commit 8f293eedcd

View File

@@ -336,6 +336,8 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence(
// Erase KeyData array and leave.
rtl_secureZeroMemory (pKeyData, sizeof(pKeyData));
rtl_digest_destroy(hDigest);
}
return aResultKey;