Followup to last patch: JS_free is null-safe.

git-svn-id: svn://10.0.0.236/trunk@171505 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org 2005-04-02 06:39:16 +00:00
parent 5701a2732a
commit 4c85caf1e7

View File

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