Bug 694570 - (2/4) - Annotate deliberate leak in SaveToEnv. r=karlt

Required now because the setenv calls in nsNativeAppSupportUnix::Start somehow
prevent the leak in putenv from occurring. These setenv calls will be removed
in the next patch.
This commit is contained in:
Oliver Henshaw 2016-06-20 08:11:00 +02:00
Родитель f30283f580
Коммит 56d2a2ea3a
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -287,6 +287,7 @@ SaveToEnv(const char *putenv)
if (expr)
PR_SetEnv(expr);
// We intentionally leak |expr| here since it is required by PR_SetEnv.
MOZ_LSAN_INTENTIONALLY_LEAK_OBJECT(expr);
}
// Tests that an environment variable exists and has a value