bug 450641 - Add missing JS_free call.

This commit is contained in:
Blake Kaplan 2008-08-14 15:03:08 -07:00
parent 9f7d261303
commit e0872c3629

View File

@ -2329,6 +2329,7 @@ js_str_fromCharCode(JSContext *cx, uintN argc, jsval *vp)
return JS_FALSE;
if (argc == 1 &&
(code = js_ValueToUint16(cx, &argv[0])) < UNIT_STRING_LIMIT) {
JS_free(cx, chars);
str = js_GetUnitStringForChar(cx, code);
if (!str)
return JS_FALSE;