summaryrefslogtreecommitdiff
path: root/mpi/mpi-mod.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpi/mpi-mod.c')
-rw-r--r--mpi/mpi-mod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpi/mpi-mod.c b/mpi/mpi-mod.c
index 0a8cfb67..88624720 100644
--- a/mpi/mpi-mod.c
+++ b/mpi/mpi-mod.c
@@ -62,7 +62,7 @@ _gcry_mpi_barrett_init (gcry_mpi_t m, int copy)
gcry_mpi_t tmp;
mpi_normalize (m);
- ctx = gcry_xcalloc (1, sizeof *ctx);
+ ctx = xcalloc (1, sizeof *ctx);
if (copy)
{
@@ -99,7 +99,7 @@ _gcry_mpi_barrett_free (mpi_barrett_t ctx)
mpi_free (ctx->r3);
if (ctx->m_copied)
mpi_free (ctx->m);
- gcry_free (ctx);
+ xfree (ctx);
}
}