summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_mult.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ec_mult.c')
-rw-r--r--src/lib/libcrypto/ec/ec_mult.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ec_mult.c b/src/lib/libcrypto/ec/ec_mult.c
index 19f21675fb..f05df5332e 100644
--- a/src/lib/libcrypto/ec/ec_mult.c
+++ b/src/lib/libcrypto/ec/ec_mult.c
@@ -169,13 +169,11 @@ static void ec_pre_comp_clear_free(void *pre_)
169 EC_POINT **p; 169 EC_POINT **p;
170 170
171 for (p = pre->points; *p != NULL; p++) 171 for (p = pre->points; *p != NULL; p++)
172 {
173 EC_POINT_clear_free(*p); 172 EC_POINT_clear_free(*p);
174 OPENSSL_cleanse(p, sizeof *p); 173 OPENSSL_cleanse(pre->points, sizeof pre->points);
175 }
176 OPENSSL_free(pre->points); 174 OPENSSL_free(pre->points);
177 } 175 }
178 OPENSSL_cleanse(pre, sizeof *pre); 176 OPENSSL_cleanse(pre, sizeof pre);
179 OPENSSL_free(pre); 177 OPENSSL_free(pre);
180 } 178 }
181 179