BN_free() memleaks

This commit is contained in:
whatdoineed2do/Ray 2023-09-25 12:04:52 +01:00
parent ecd9cd8dd2
commit 12a041c380

View File

@ -100,6 +100,13 @@ EC_GROUP* PIDGEN3::initializeEllipticCurve(
// Cleanup
BN_CTX_free(context);
BN_free(p);
BN_free(a);
BN_free(b);
BN_free(generatorX);
BN_free(generatorY);
BN_free(publicKeyX);
BN_free(publicKeyY);
return eCurve;
}