Followup to last patch: JS_free is null-safe.

This commit is contained in:
brendan%mozilla.org 2005-04-02 06:39:16 +00:00
Родитель d7a47fe87b
Коммит fbdba16b1b
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -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;
}