plug memory leak of DH public key
authorLove Hörnquist Åstrand <lha@kth.se>
Thu, 11 Dec 2008 05:08:57 +0000 (05:08 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Thu, 11 Dec 2008 05:08:57 +0000 (05:08 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24154 ec53bebd-3082-4978-b11e-865c3cabbd6b

kdc/pkinit.c

index 315ef6cbdfb2efd40886072113f16630afcf86bd..70786aa1ac8e19eea99073288f8ddd1ed879b62e 100644 (file)
@@ -886,6 +886,7 @@ pk_mk_pa_reply_dh(krb5_context context,
        return ret;
 
     ASN1_MALLOC_ENCODE(DHPublicKey, buf.data, buf.length, &i, &size, ret);
+    der_free_heim_integer(&i);
     if (ret) {
        krb5_set_error_message(context, ret, "ASN.1 encoding of "
                               "DHPublicKey failed (%d)", ret);