зеркало из https://github.com/mozilla/gecko-dev.git
Followup to last patch: JS_free is null-safe.
This commit is contained in:
Родитель
d7a47fe87b
Коммит
fbdba16b1b
|
@ -1474,8 +1474,7 @@ find_replen(JSContext *cx, ReplaceData *rdata, size_t *sizep)
|
|||
|
||||
lambda_out:
|
||||
js_FreeStack(cx, mark);
|
||||
if (cx->regExpStatics.moreParens)
|
||||
JS_free(cx, cx->regExpStatics.moreParens);
|
||||
JS_free(cx, cx->regExpStatics.moreParens); /* JS_free is null-safe */
|
||||
cx->regExpStatics = save;
|
||||
return ok;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче