Fix a memory leak in an error path
[openssl.git] / crypto / rsa / rsa_mp.c
index 97a09f1..7e38179 100644 (file)
@@ -51,6 +51,7 @@ RSA_PRIME_INFO *rsa_multip_info_new(void)
     BN_free(pinfo->d);
     BN_free(pinfo->t);
     BN_free(pinfo->pp);
+    OPENSSL_free(pinfo);
     return NULL;
 }