Commit 2eeb5fec authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

ntdll: Fix a memory leak (Coverity).

parent 2169dd9a
...@@ -438,7 +438,12 @@ static void init_paths( char *argv[] ) ...@@ -438,7 +438,12 @@ static void init_paths( char *argv[] )
data_dir = build_path( bin_dir, BIN_TO_DATADIR ); data_dir = build_path( bin_dir, BIN_TO_DATADIR );
wineloader = build_path( bin_dir, basename ); wineloader = build_path( bin_dir, basename );
} }
else wineloader = build_path( build_path( build_dir, "loader" ), basename ); else
{
char *dirname = build_path( build_dir, "loader" );
wineloader = build_path( dirname, basename );
free(dirname);
}
asprintf( &env, "WINELOADER=%s", wineloader ); asprintf( &env, "WINELOADER=%s", wineloader );
putenv( env ); putenv( env );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment