summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/param/params.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/param/params.c b/source3/param/params.c
index 4d1c191b47..a0a259c007 100644
--- a/source3/param/params.c
+++ b/source3/param/params.c
@@ -546,6 +546,7 @@ BOOL pm_process( char *FileName,
if( NULL == bufr )
{
DEBUG(0,("%s memory allocation failure.\n", func));
+ fclose(InFile);
return( False );
}
result = Parse( InFile, sfunc, pfunc );
@@ -554,6 +555,8 @@ BOOL pm_process( char *FileName,
bSize = 0;
}
+ fclose(InFile);
+
if( !result ) /* Generic failure. */
{
DEBUG(0,("%s Failed. Error returned from params.c:parse().\n", func));