# HG changeset patch # User Matt Johnston # Date 1162478960 0 # Node ID ed910547d44965220ecd5cd08a38fdb429fc3265 # Parent 36d21680a9d31dd40db0ff39d41c388a2228d0f5 Free x component of DSS key upon failure to load (found by Klocwork) diff -r 36d21680a9d3 -r ed910547d449 dss.c --- a/dss.c Sun Mar 26 09:26:43 2006 +0000 +++ b/dss.c Thu Nov 02 14:49:20 2006 +0000 @@ -90,6 +90,9 @@ key->x = m_malloc(sizeof(mp_int)); m_mp_init(key->x); ret = buf_getmpint(buf, key->x); + if (ret == DROPBEAR_FAILURE) { + m_free(key->x); + } return ret; }