mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
fixed memory leaks
This commit is contained in:
@@ -70,6 +70,7 @@ void test0() {
|
||||
if(strncmp(got, "HALLO", 5) != 0) {
|
||||
throw pcp::exception(CA);
|
||||
}
|
||||
free(got);
|
||||
}
|
||||
else
|
||||
throw pcp::exception(CA, "failed to decrypt");
|
||||
|
||||
@@ -184,7 +184,7 @@ temporarily disabled
|
||||
*/
|
||||
#
|
||||
# encryption tests
|
||||
<test check-crypto-alicia-init>
|
||||
<test check-crypto-alicia-2-bobby>
|
||||
# alicias part
|
||||
prepare = echo ${md5msg} > testmessage
|
||||
<test check-crypto-alicia-import-secret>
|
||||
@@ -201,9 +201,7 @@ temporarily disabled
|
||||
cmd = $pcp -V va -e -i ${idbobby} -I testmessage -O testencrypted -x a
|
||||
expect = /for ${idbobby} successfully/
|
||||
</test>
|
||||
</test>
|
||||
|
||||
<test check-crypto-bobby-init>
|
||||
# bobbys part
|
||||
<test check-crypto-bobby-import-secret>
|
||||
cmd = $pcp -V vb -K -I key-bobby-sec -x b
|
||||
|
||||
Reference in New Issue
Block a user