git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e02130
)
Remove talloc_autofree_context() from pm_process
author
Volker Lendecke
<vl@samba.org>
Mon, 27 Sep 2010 05:16:14 +0000
(22:16 -0700)
committer
Volker Lendecke
<vl@samba.org>
Mon, 27 Sep 2010 16:14:47 +0000
(18:14 +0200)
This would be a classic for talloc_tos(), InFile is freed a few lines down. But
unfortunately S4 does not support talloc_tos().
lib/util/params.c
patch
|
blob
|
history
diff --git
a/lib/util/params.c
b/lib/util/params.c
index d589771f4dcafb8b70da808b7ef2a4302ac151e9..8d17e0db5a24c78452985a84d4e9aa2f15e019af 100644
(file)
--- a/
lib/util/params.c
+++ b/
lib/util/params.c
@@
-543,7
+543,7
@@
bool pm_process( const char *FileName,
myFILE *InFile;
const char *func = "params.c:pm_process() -";
- InFile = OpenConfFile(
talloc_autofree_context()
, FileName); /* Open the config file. */
+ InFile = OpenConfFile(
NULL
, FileName); /* Open the config file. */
if( NULL == InFile )
return( false );