Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Kaptur <kaptur.michal@gmail.com>2017-11-27 23:41:58 +0300
committerJanek Bevendorff <janek@jbev.net>2017-11-28 01:36:09 +0300
commit0ff75e7a882523d49c5bf74a32fcb68d0d7b1afc (patch)
treeac8499a887250271c2ae2ff47ca5edd0ce629b3e /tests/TestSymmetricCipher.cpp
parentb20918b60e810d3c946d8510c34243bc3dd242c4 (diff)
Fixed memory leaks in non-gui tests
Fixed 2 memory leaks in production code and a few in testcases. As a result leak_check_at_exit ASAN option does not need to turned off for non-gui tests. Smart pointers should be used elsewhere for consistency, but the sooner this fixes are delivered, the lesser memory leaks are introduced.
Diffstat (limited to 'tests/TestSymmetricCipher.cpp')
-rw-r--r--tests/TestSymmetricCipher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/TestSymmetricCipher.cpp b/tests/TestSymmetricCipher.cpp
index 4f78693d6..5242c3888 100644
--- a/tests/TestSymmetricCipher.cpp
+++ b/tests/TestSymmetricCipher.cpp
@@ -162,7 +162,7 @@ void TestSymmetricCipher::testTwofish256CbcEncryption()
bool ok;
for (int i = 0; i < keys.size(); ++i) {
- cipher.init(keys[i], ivs[i]);
+ QVERIFY(cipher.init(keys[i], ivs[i]));
QByteArray ptNext = plainTexts[i];
QByteArray ctPrev = ivs[i];
QByteArray ctCur;