From 05920c5c5ffcedc435eeee29f6357c6b4fdc9c4f Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> Date: Wed, 16 May 2018 11:00:10 +0200 Subject: Fix memory leak (mismatch free/delete/delete[]), fix invalid memory access --- src/PasswordHash.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/PasswordHash.cpp') diff --git a/src/PasswordHash.cpp b/src/PasswordHash.cpp index 329733b..f877d20 100644 --- a/src/PasswordHash.cpp +++ b/src/PasswordHash.cpp @@ -3,9 +3,9 @@ namespace odhtdb { - OwnedMemory hashPassword(const DataView &plainPassword, const DataView &salt) + OwnedByteArray hashPassword(const DataView &plainPassword, const DataView &salt) { - OwnedMemory result; + OwnedByteArray result; const uint32_t tCost = 2; const uint32_t mCost = 1 << 16; -- cgit v1.2.3