Commit 953a1665 authored by Bernd Edlinger's avatar Bernd Edlinger
Browse files

Fix a memleak in ec_GFp_mont_group_set_curve.

parent 0cfb4226
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -247,6 +247,8 @@ int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p,
        BN_CTX_free(new_ctx);
    if (mont != NULL)
        BN_MONT_CTX_free(mont);
    if (one != NULL)
        BN_free(one);
    return ret;
}