1
0
mirror of https://github.com/clearml/dropbear synced 2025-06-26 18:17:32 +00:00

Fix memory leak of ecdsa structure, found by Coverity

This commit is contained in:
Matt Johnston 2015-01-28 22:29:18 +08:00
parent e25c297c3c
commit 9bb9b4829d

View File

@ -131,6 +131,7 @@ ecc_key *buf_get_ecdsa_priv_key(buffer *buf) {
if (buf_getmpint(buf, new_key->k) != DROPBEAR_SUCCESS) {
ecc_free(new_key);
m_free(new_key);
return NULL;
}