summaryrefslogtreecommitdiff
path: root/lib/util/params.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-19 13:52:56 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-19 13:52:56 +0200
commit069437a2faf6a8811ba511f765c5d133ed0b97a9 (patch)
tree1ed810b8a6965e7f604e836ba342daf5195a1175 /lib/util/params.c
parent55a88210d8ff429f7cc86db58c8a03c6eb991b93 (diff)
downloadsamba-069437a2faf6a8811ba511f765c5d133ed0b97a9.tar.gz
samba-069437a2faf6a8811ba511f765c5d133ed0b97a9.tar.bz2
samba-069437a2faf6a8811ba511f765c5d133ed0b97a9.zip
Just call talloc_free directly rather than through a helper function.
Diffstat (limited to 'lib/util/params.c')
-rw-r--r--lib/util/params.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/util/params.c b/lib/util/params.c
index c03edec272..7af7ac7348 100644
--- a/lib/util/params.c
+++ b/lib/util/params.c
@@ -105,11 +105,6 @@ static int mygetc(myFILE *f)
return (int)( *(f->p++) & 0x00FF );
}
-static void myfile_close(myFILE *f)
-{
- talloc_free(f);
-}
-
/* -------------------------------------------------------------------------- **
* Functions...
*/
@@ -565,7 +560,7 @@ bool pm_process( const char *FileName,
if( NULL == InFile->bufr )
{
DEBUG(0,("%s memory allocation failure.\n", func));
- myfile_close(InFile);
+ talloc_free(InFile);
return( false );
}
result = Parse( InFile, sfunc, pfunc, userdata );
@@ -573,7 +568,7 @@ bool pm_process( const char *FileName,
InFile->bSize = 0;
}
- myfile_close(InFile);
+ talloc_free(InFile);
if( !result ) /* Generic failure. */
{