summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_clear.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtommath/bn_mp_clear.c')
-rw-r--r--libtommath/bn_mp_clear.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtommath/bn_mp_clear.c b/libtommath/bn_mp_clear.c
index 1f360b2..b8e724c 100644
--- a/libtommath/bn_mp_clear.c
+++ b/libtommath/bn_mp_clear.c
@@ -25,7 +25,7 @@ void mp_clear(mp_int *a)
}
/* free ram */
- XFREE(a->dp);
+ XFREE(a->dp, sizeof (mp_digit) * (size_t)a->alloc);
/* reset members to make debugging easier */
a->dp = NULL;