mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:21:24 +02:00
fix error handled instances of key deletes
This commit is contained in:
parent
f00a4aead6
commit
f9e9a743fb
1 changed files with 2 additions and 2 deletions
|
@ -66,11 +66,11 @@ void RSAKeypairGenerator::generateKeypair() {
|
||||||
|
|
||||||
// cleanup the public and private key DER data, if required
|
// cleanup the public and private key DER data, if required
|
||||||
if (publicKeyLength > 0) {
|
if (publicKeyLength > 0) {
|
||||||
delete publicKeyDER;
|
delete[] publicKeyDER;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (privateKeyLength > 0) {
|
if (privateKeyLength > 0) {
|
||||||
delete privateKeyDER;
|
delete[] privateKeyDER;
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue