mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
pm_process() never closed the file (a memory and file descriptor leak)
(This used to be commit 0d9b0d0fffc2b11fe4897b8b99f321fc7d9a143c)
This commit is contained in:
parent
ad5c8bad8a
commit
23c68038b9
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user