Fix a few simple leaks inside twtest; fix some file permissions that got set wrong in last commit
This commit is contained in:
parent
b3bcdbbcd9
commit
55020401d9
|
@ -407,6 +407,8 @@ void TestCrypto()
|
||||||
|
|
||||||
delete pPublic;
|
delete pPublic;
|
||||||
delete pPrivate;
|
delete pPrivate;
|
||||||
|
delete pPublic2;
|
||||||
|
delete pPrivate2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -127,6 +127,8 @@ void cTestFSPropDisplayer::Test()
|
||||||
d.TraceDebug("\n");
|
d.TraceDebug("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete pPD;
|
||||||
|
delete pPDNew;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,6 +109,7 @@ void TestKeyFile()
|
||||||
elGamal.ProcessBlock(ciphertext, recovered_text);
|
elGamal.ProcessBlock(ciphertext, recovered_text);
|
||||||
|
|
||||||
TEST(memcmp(recovered_text, plaintext, elGamal.GetBlockSizePlain()) == 0);
|
TEST(memcmp(recovered_text, plaintext, elGamal.GetBlockSizePlain()) == 0);
|
||||||
|
delete [] pMem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// save to and read from disk
|
// save to and read from disk
|
||||||
|
|
Loading…
Reference in New Issue