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

Boost Jam cleanup - removed one extra object copy in path_key().

[SVN r79279]
This commit is contained in:
Jurko Gospodnetić
2012-07-05 08:00:13 +00:00
parent 095bbd6305
commit fa5ea2ec6d

View File

@@ -398,7 +398,7 @@ static path_key_entry * path_key( OBJECT * const path,
&found );
if ( !found || nresult == result )
{
nresult->path = object_copy( normalized );
nresult->path = normalized;
if ( known_to_be_long )
nresult->key = object_copy( path );
else
@@ -410,8 +410,9 @@ static path_key_entry * path_key( OBJECT * const path,
string_free( long_path );
}
}
else
object_free( normalized );
string_free( buf );
object_free( normalized );
if ( nresult != result )
{
result->path = object_copy( path );