Fix an error message memory leak in krb5_preauth_supply_preauth_data
authorGreg Hudson <ghudson@mit.edu>
Mon, 4 May 2009 17:16:38 +0000 (17:16 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 4 May 2009 17:16:38 +0000 (17:16 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22307 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/preauth2.c

index 3d4329eb6eb8d3e619f1dc506e74db7edeb3e5b0..542c2fa5dee635b09520c79fee0dc5253cd06d04 100644 (file)
@@ -260,6 +260,7 @@ krb5_preauth_supply_preauth_data(krb5_context context,
            emsg = krb5_get_error_message(context, retval);
            krb5int_set_error(&context->err, retval, "Preauth plugin %s: %s",
                              context->preauth_context->modules[i].name, emsg);
+           krb5_free_error_message(context, emsg);
            break;
        }
     }