comparison ecdsa.c @ 1000:c0b1b7eb5c84

Fix memory leak of ecdsa structure, found by Coverity
author Matt Johnston <matt@ucc.asn.au>
date Wed, 28 Jan 2015 22:29:18 +0800
parents c19acba28590
children 063c38ea622b
comparison
equal deleted inserted replaced
999:295a08e9d07e 1000:c0b1b7eb5c84
129 return NULL; 129 return NULL;
130 } 130 }
131 131
132 if (buf_getmpint(buf, new_key->k) != DROPBEAR_SUCCESS) { 132 if (buf_getmpint(buf, new_key->k) != DROPBEAR_SUCCESS) {
133 ecc_free(new_key); 133 ecc_free(new_key);
134 m_free(new_key);
134 return NULL; 135 return NULL;
135 } 136 }
136 137
137 return new_key; 138 return new_key;
138 } 139 }