Fix some memory leaks in ecc code

This commit is contained in:
Matt Johnston
2015-03-01 22:44:36 +08:00
parent 3113932151
commit 3317916111
3 changed files with 6 additions and 6 deletions

5
ecc.c
View File

@@ -86,11 +86,6 @@ static int ecc_is_point(ecc_key *key)
{
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);