# HG changeset patch # User Matt Johnston # Date 1422455358 -28800 # Node ID c0b1b7eb5c84782a2374dd06a9ed0dcf492370c4 # Parent 295a08e9d07e791a13a741ec67f9538b96ac40ec Fix memory leak of ecdsa structure, found by Coverity diff -r 295a08e9d07e -r c0b1b7eb5c84 ecdsa.c --- a/ecdsa.c Wed Jan 28 22:22:32 2015 +0800 +++ b/ecdsa.c Wed Jan 28 22:29:18 2015 +0800 @@ -131,6 +131,7 @@ if (buf_getmpint(buf, new_key->k) != DROPBEAR_SUCCESS) { ecc_free(new_key); + m_free(new_key); return NULL; }