diff --git a/engine/modules/path.c b/engine/modules/path.c index acc9177..ced5e55 100644 --- a/engine/modules/path.c +++ b/engine/modules/path.c @@ -15,7 +15,7 @@ LIST * path_exists( FRAME * frame, int flags ) { timestamp time; timestamp_from_path( &time, list_front( lol_get( frame->args, 0 ) ) ); - return timestamp_empty( &time ) ? L0 : list_new( constant_true ); + return timestamp_empty( &time ) ? L0 : list_new( object_copy( constant_true ) ); } diff --git a/engine/pathnt.c b/engine/pathnt.c index fb8c767..a42f870 100644 --- a/engine/pathnt.c +++ b/engine/pathnt.c @@ -216,7 +216,7 @@ static path_key_entry * path_key( OBJECT * const path, OBJECT * normalized; int normalized_size; path_key_entry * nresult; - result->path = path; + result->path = object_copy( path ); { string buf[ 1 ]; string_copy( buf, object_str( path ) );