summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-26 22:05:43 -0700
committerVolker Lendecke <vl@samba.org>2010-09-28 07:36:18 +0200
commit886b5b67ee65a867bf8e4c345bc600dd7527de2a (patch)
tree71af6d769c1d1af96836c1fa0cf7d9e89c919b47 /source3/lib
parent49b4d2e652c189fff2fa4b3a94aed2ba0477cc76 (diff)
downloadsamba-886b5b67ee65a867bf8e4c345bc600dd7527de2a.tar.gz
samba-886b5b67ee65a867bf8e4c345bc600dd7527de2a.tar.bz2
samba-886b5b67ee65a867bf8e4c345bc600dd7527de2a.zip
s3: Remove talloc_autofree_context() from myhostname()
No destructor needed, so we can as well use the NULL context
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 90fcb3773e..36d966126e 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2050,9 +2050,7 @@ char *myhostname(void)
{
static char *ret;
if (ret == NULL) {
- /* This is cached forever so
- * use talloc_autofree_context() ctx. */
- ret = get_myname(talloc_autofree_context());
+ ret = get_myname(NULL);
}
return ret;
}