diff --git a/src/coreencryption.cpp b/src/coreencryption.cpp index b886d3504..a69c1efdb 100644 --- a/src/coreencryption.cpp +++ b/src/coreencryption.cpp @@ -159,6 +159,7 @@ QByteArray Core::getSaltFromFile(QString filename) } QByteArray res = QByteArray::fromRawData(reinterpret_cast(salt), tox_pass_salt_length()); + delete[] salt; return res; }