Remove talloc_autofree_context() from pm_process
authorVolker Lendecke <vl@samba.org>
Mon, 27 Sep 2010 05:16:14 +0000 (22:16 -0700)
committerVolker 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

index d589771f4dcafb8b70da808b7ef2a4302ac151e9..8d17e0db5a24c78452985a84d4e9aa2f15e019af 100644 (file)
@@ -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 );