gss: free exported context buffer after use in store_negoex_auth_mech()

Code style/consistency: store_negoex_auth_mech() should free the exported
context buffer after use. There is no leak as the buffer was freed at the end
of the function.
This commit is contained in:
Luke Howard
2021-08-10 09:02:20 +10:00
parent c953bc5e79
commit 490173b417

View File

@@ -436,6 +436,7 @@ store_negoex_auth_mech(krb5_storage *sp, struct negoex_auth_mech *mech)
CHECK(major, gss_export_sec_context(&minor, &mech->mech_context,
&buf));
CHECK(ret, store_gss_buffer(sp, &buf));
gss_release_buffer(&minor, &buf);
}
if (snc_flags & SNC_METADATA)