diff options
Diffstat (limited to 'pyecsca/codegen/templates/mult_wnaf.c')
| -rw-r--r-- | pyecsca/codegen/templates/mult_wnaf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pyecsca/codegen/templates/mult_wnaf.c b/pyecsca/codegen/templates/mult_wnaf.c index c9228fb..569e78b 100644 --- a/pyecsca/codegen/templates/mult_wnaf.c +++ b/pyecsca/codegen/templates/mult_wnaf.c @@ -40,8 +40,7 @@ static void scalar_mult_inner(bn_t *scalar, point_t *point, curve_t *curve, poin {%- endif %} } } - free(naf->data); - free(naf); + bn_naf_clear(naf); {%- if "scl" in scalarmult.formulas %} point_scl(q, curve, q); |
