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:
parent
5701a2732a
commit
4c85caf1e7
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user