gss: plug leak in test_negoex_mech

test_negoex_mech should free the result of calling decode_GSSAPIContextToken()
This commit is contained in:
Luke Howard
2020-03-02 17:15:33 +11:00
parent aaf4cf89a5
commit 41cb135b30

View File

@@ -157,6 +157,7 @@ gss_accept_sec_context(OM_uint32 *minor_status, gss_ctx_id_t *context_handle,
sizeof(mechbuf),
&ct.thisMech,
&mech_len);
free_GSSAPIContextToken(&ct);
}
if (ret) {
*minor_status = ret;