зеркало из https://github.com/mozilla/gecko-dev.git
Bug 660610: Don't double-free execAlloc_ after OOM. (r=nnethercote)
This commit is contained in:
Родитель
b069a3b46a
Коммит
daef7ba1e0
|
@ -631,7 +631,8 @@ JaegerCompartment::Initialize()
|
|||
|
||||
TrampolineCompiler tc(execAlloc_, &trampolines);
|
||||
if (!tc.compile()) {
|
||||
delete execAlloc_;
|
||||
js::Foreground::delete_(execAlloc_);
|
||||
execAlloc_ = NULL;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче