projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Error checking and memory leak fixes in NISTZ256.
[oweals/openssl.git]
/
crypto
/
ec
/
ec2_mult.c
diff --git
a/crypto/ec/ec2_mult.c
b/crypto/ec/ec2_mult.c
index 1fa0a536ef6a6b1a5f62ca3d3b42e5e10f25888d..635c0a55f1edb6788eeb2c12ace1ed6beff7f489 100644
(file)
--- a/
crypto/ec/ec2_mult.c
+++ b/
crypto/ec/ec2_mult.c
@@
-437,10
+437,8
@@
int ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r,
ret = 1;
err:
- if (p)
- EC_POINT_free(p);
- if (acc)
- EC_POINT_free(acc);
+ EC_POINT_free(p);
+ EC_POINT_free(acc);
if (new_ctx != NULL)
BN_CTX_free(new_ctx);
return ret;