summaryrefslogtreecommitdiff
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
commit63d56ad4e0a004c793da69da8d21177c3fc526f4 (patch)
treeca830de9381318f3e388248011fe788f131c687b
parent0b12c3aff0afd2a7948f793bada981860ac8f5c3 (diff)
downloaddropbear-63d56ad4e0a004c793da69da8d21177c3fc526f4.tar.gz
Fix memory leak of ecdsa structure, found by Coverity
-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;
}