Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75719 - trunk/tools/build/v2/engine
From: steven_at_[hidden]
Date: 2011-11-28 23:28:29


Author: steven_watanabe
Date: 2011-11-28 23:28:27 EST (Mon, 28 Nov 2011)
New Revision: 75719
URL: http://svn.boost.org/trac/boost/changeset/75719

Log:
Fix cleanup
Text files modified:
   trunk/tools/build/v2/engine/filesys.c | 7 +++++--
   trunk/tools/build/v2/engine/search.c | 7 +++++--
   trunk/tools/build/v2/engine/timestamp.c | 7 +++++--
   3 files changed, 15 insertions(+), 6 deletions(-)

Modified: trunk/tools/build/v2/engine/filesys.c
==============================================================================
--- trunk/tools/build/v2/engine/filesys.c (original)
+++ trunk/tools/build/v2/engine/filesys.c 2011-11-28 23:28:27 EST (Mon, 28 Nov 2011)
@@ -81,8 +81,11 @@
 void file_done()
 {
     remove_files_atexit();
- hashenumerate( filecache_hash, free_file_info, (void *)0 );
- hashdone( filecache_hash );
+ if ( filecache_hash )
+ {
+ hashenumerate( filecache_hash, free_file_info, (void *)0 );
+ hashdone( filecache_hash );
+ }
 }
 
 void file_remove_atexit( OBJECT * path )

Modified: trunk/tools/build/v2/engine/search.c
==============================================================================
--- trunk/tools/build/v2/engine/search.c (original)
+++ trunk/tools/build/v2/engine/search.c 2011-11-28 23:28:27 EST (Mon, 28 Nov 2011)
@@ -247,6 +247,9 @@
 
 void search_done( void )
 {
- hashenumerate( explicit_bindings, free_binding, (void *)0 );
- hashdone( explicit_bindings );
+ if ( explicit_bindings )
+ {
+ hashenumerate( explicit_bindings, free_binding, (void *)0 );
+ hashdone( explicit_bindings );
+ }
 }

Modified: trunk/tools/build/v2/engine/timestamp.c
==============================================================================
--- trunk/tools/build/v2/engine/timestamp.c (original)
+++ trunk/tools/build/v2/engine/timestamp.c 2011-11-28 23:28:27 EST (Mon, 28 Nov 2011)
@@ -238,6 +238,9 @@
 
 void stamps_done()
 {
- hashenumerate( bindhash, free_timestamps, (void *)0 );
- hashdone( bindhash );
+ if ( bindhash )
+ {
+ hashenumerate( bindhash, free_timestamps, (void *)0 );
+ hashdone( bindhash );
+ }
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk