2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

Fix memory leak on Windows.

[SVN r75750]
This commit is contained in:
Steven Watanabe
2011-11-30 15:11:42 +00:00
parent 38e6896000
commit 79f5aff9ed

View File

@@ -71,6 +71,7 @@ void file_dirscan( OBJECT * dir, scanback func, void * closure )
if ( !d || !d->is_dir )
{
object_free( dir );
PROFILE_EXIT( FILE_DIRSCAN );
return;
}
@@ -117,6 +118,7 @@ void file_dirscan( OBJECT * dir, scanback func, void * closure )
if ( ret = findfirst( filespec->value, finfo, FA_NORMAL | FA_DIREC ) )
{
string_free( filespec );
object_free( dir );
PROFILE_EXIT( FILE_DIRSCAN );
return;
}
@@ -147,6 +149,7 @@ void file_dirscan( OBJECT * dir, scanback func, void * closure )
if ( ret = ( handle < 0L ) )
{
string_free( filespec );
object_free( dir );
PROFILE_EXIT( FILE_DIRSCAN );
return;
}
@@ -223,6 +226,7 @@ void file_dirscan( OBJECT * dir, scanback func, void * closure )
}
}
object_free( dir );
PROFILE_EXIT( FILE_DIRSCAN );
}