Index: openmp/tools/archer/ompt-tsan.cpp =================================================================== --- openmp/tools/archer/ompt-tsan.cpp +++ openmp/tools/archer/ompt-tsan.cpp @@ -862,9 +862,7 @@ static int ompt_tsan_initialize(ompt_function_lookup_t lookup, int device_num, ompt_data_t *tool_data) { - const char *options = getenv("ARCHER_OPTIONS"); - archer_flags = new ArcherFlags(options); - options = getenv("TSAN_OPTIONS"); + const char *options = getenv("TSAN_OPTIONS"); tsan_flags = new TsanFlags(options); ompt_set_callback_t ompt_set_callback = @@ -903,6 +901,7 @@ stderr, "Warning: please export TSAN_OPTIONS='ignore_noninstrumented_modules=1' " "to avoid false positive reports from the OpenMP runtime.!\n"); + delete tsan_flags; return 1; // success }