1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

util_str: setup the correct talloc name for strings

metze
(partly from samba4wins tree 447e7f9532131117e896712db9def321c96718eb)
This commit is contained in:
Stefan Metzmacher 2008-01-30 10:34:57 +01:00 committed by Stefan Metzmacher
parent 9d4f766ae3
commit 9967907190
3 changed files with 6 additions and 0 deletions

View File

@ -120,6 +120,8 @@ _PUBLIC_ char *string_sub_talloc(TALLOC_CTX *mem_ctx, const char *s,
SMB_ASSERT(ret[len] == '\0');
talloc_set_name_const(ret, ret);
return ret;
}

View File

@ -153,6 +153,8 @@ _PUBLIC_ const char *str_format_nbt_domain(TALLOC_CTX *mem_ctx, const char *s)
}
}
talloc_set_name_const(ret, ret);
return ret;
}

View File

@ -71,6 +71,8 @@ char *attrib_string(TALLOC_CTX *mem_ctx, uint32_t attrib)
ret[len] = 0;
talloc_set_name_const(ret, ret);
return ret;
}