From 886b5b67ee65a867bf8e4c345bc600dd7527de2a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 26 Sep 2010 22:05:43 -0700 Subject: [PATCH] s3: Remove talloc_autofree_context() from myhostname() No destructor needed, so we can as well use the NULL context --- source3/lib/util.c | 4 +--- 1 file changed, 1 insertion(+), 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; } -- 2.34.1