summaryrefslogtreecommitdiffhomepage
path: root/ecdsa.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-01-28 22:29:18 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-01-28 22:29:18 +0800
commit9bb9b4829d6dd97028adf1c90eb4d66977429a2c (patch)
tree5a2602397b90f19e008e759ce34367e0cbc1bc77 /ecdsa.c
parente25c297c3ccd396d0c3d41bd7e7d079c528d6353 (diff)
Fix memory leak of ecdsa structure, found by Coverity
Diffstat (limited to 'ecdsa.c')
-rw-r--r--ecdsa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ecdsa.c b/ecdsa.c
index 195121f..0396014 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -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;
}