mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix minor memleak
This commit is contained in:
parent
d33f87772d
commit
ff4b431e5e
@ -159,6 +159,7 @@ QByteArray Core::getSaltFromFile(QString filename)
|
||||
}
|
||||
|
||||
QByteArray res = QByteArray::fromRawData(reinterpret_cast<const char*>(salt), tox_pass_salt_length());
|
||||
delete[] salt;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user