mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 12:22:17 +00:00
Fix a leak and a missing copy when building with the global string table disabled.
This commit is contained in:
@@ -82,6 +82,7 @@ static void ps_map_destroy( struct ps_map * map )
|
||||
for ( pos = map->table[ i ]; pos; )
|
||||
{
|
||||
struct ps_map_entry * tmp = pos->next;
|
||||
object_free( pos->value );
|
||||
BJAM_FREE( pos );
|
||||
pos = tmp;
|
||||
}
|
||||
@@ -164,7 +165,7 @@ LIST * property_set_create( FRAME * frame, int flags )
|
||||
list_new( object_new( "property-set" ) ), 0 );
|
||||
LISTITER iter, end;
|
||||
object_free( rulename );
|
||||
pos->value = list_front( val );
|
||||
pos->value = object_copy( list_front( val ) );
|
||||
var_set( bindmodule( pos->value ), varname, unique, VAR_SET );
|
||||
object_free( varname );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user