diff options
Diffstat (limited to 'lib/libcrypto/ec/ecp_nistp224.c')
-rw-r--r-- | lib/libcrypto/ec/ecp_nistp224.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libcrypto/ec/ecp_nistp224.c b/lib/libcrypto/ec/ecp_nistp224.c index 6e9b9fac3ca..afe25853e6b 100644 --- a/lib/libcrypto/ec/ecp_nistp224.c +++ b/lib/libcrypto/ec/ecp_nistp224.c @@ -1546,12 +1546,9 @@ err: EC_POINT_free(generator); if (new_ctx != NULL) BN_CTX_free(new_ctx); - if (secrets != NULL) - free(secrets); - if (pre_comp != NULL) - free(pre_comp); - if (tmp_felems != NULL) - free(tmp_felems); + free(secrets); + free(pre_comp); + free(tmp_felems); return ret; } |