Ensure BIGNUM is freed in an error path

Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
Matt Caswell 2016-04-26 18:29:49 +01:00
parent fe2b7dfdf4
commit 5bf7c7725b
1 changed files with 1 additions and 2 deletions

View File

@ -119,9 +119,8 @@ int prime_main(int argc, char **argv)
}
}
BN_free(bn);
ret = 0;
end:
BN_free(bn);
return ret;
}