git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49b4d2e
)
s3: Remove talloc_autofree_context() from myhostname()
author
Volker Lendecke
<vl@samba.org>
Mon, 27 Sep 2010 05:05:43 +0000
(22:05 -0700)
committer
Volker Lendecke
<vl@samba.org>
Tue, 28 Sep 2010 05:36:18 +0000
(07:36 +0200)
No destructor needed, so we can as well use the NULL context
source3/lib/util.c
patch
|
blob
|
history
diff --git
a/source3/lib/util.c
b/source3/lib/util.c
index 90fcb3773e72228c710f7ed5b82cd091fb5b3038..36d966126e1388c9140e175f0d51d1a4bc1a4857 100644
(file)
--- 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;
}