Skip to content
Snippets Groups Projects
Commit 9bb9b482 authored by Matt Johnston's avatar Matt Johnston
Browse files

Fix memory leak of ecdsa structure, found by Coverity

parent e25c297c
No related merge requests found
...@@ -131,6 +131,7 @@ ecc_key *buf_get_ecdsa_priv_key(buffer *buf) { ...@@ -131,6 +131,7 @@ ecc_key *buf_get_ecdsa_priv_key(buffer *buf) {
if (buf_getmpint(buf, new_key->k) != DROPBEAR_SUCCESS) { if (buf_getmpint(buf, new_key->k) != DROPBEAR_SUCCESS) {
ecc_free(new_key); ecc_free(new_key);
m_free(new_key);
return NULL; return NULL;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment