comparison dss.c @ 368:ed910547d449

Free x component of DSS key upon failure to load (found by Klocwork)
author Matt Johnston <matt@ucc.asn.au>
date Thu, 02 Nov 2006 14:49:20 +0000
parents c5d3ef11155f
children a124aff0cbf1
comparison
equal deleted inserted replaced
311:36d21680a9d3 368:ed910547d449
88 } 88 }
89 89
90 key->x = m_malloc(sizeof(mp_int)); 90 key->x = m_malloc(sizeof(mp_int));
91 m_mp_init(key->x); 91 m_mp_init(key->x);
92 ret = buf_getmpint(buf, key->x); 92 ret = buf_getmpint(buf, key->x);
93 if (ret == DROPBEAR_FAILURE) {
94 m_free(key->x);
95 }
93 96
94 return ret; 97 return ret;
95 } 98 }
96 99
97 100