diff ecc.c @ 1058:063c38ea622b

Fix some memory leaks in ecc code
author Matt Johnston <matt@ucc.asn.au>
date Sun, 01 Mar 2015 22:44:36 +0800
parents 30ab30e46452
children 750ec4ec4cbe
line wrap: on
line diff
--- a/ecc.c	Sat Feb 28 23:49:39 2015 +0800
+++ b/ecc.c	Sun Mar 01 22:44:36 2015 +0800
@@ -86,11 +86,6 @@
 {
 	mp_int *prime, *b, *t1, *t2;
 	int err;
-
-	prime = m_malloc(sizeof(mp_int));
-	b = m_malloc(sizeof(mp_int));
-	t1 = m_malloc(sizeof(mp_int));
-	t2 = m_malloc(sizeof(mp_int));
 	
 	m_mp_alloc_init_multi(&prime, &b, &t1, &t2, NULL);