krb5_gss_export_name uses malloc to construct a gss_buffer_desc value,
and should use gssalloc_malloc instead.
(cherry picked from commit
e54c8d7e6c6185ff4d0e1b472f98897c2e3fc5b3)
ticket: 7233
version_fixed: 1.10.4
status: resolved
krb5_free_context(context);
length = strlen(str);
exported_name->length = 10 + length + gss_mech_krb5->length;
- exported_name->value = malloc(exported_name->length);
+ exported_name->value = gssalloc_malloc(exported_name->length);
if (!exported_name->value) {
free(str);
if (minor_status)