fix error handled instances of key deletes

This commit is contained in:
Stephen Birarda 2014-10-16 14:49:12 -07:00
parent f00a4aead6
commit f9e9a743fb

View file

@ -66,11 +66,11 @@ void RSAKeypairGenerator::generateKeypair() {
// cleanup the public and private key DER data, if required
if (publicKeyLength > 0) {
delete publicKeyDER;
delete[] publicKeyDER;
}
if (privateKeyLength > 0) {
delete privateKeyDER;
delete[] privateKeyDER;
}
return;