From 4ae99fee848875822c2a061156888a0b99444c60 Mon Sep 17 00:00:00 2001 From: Blake Kaplan Date: Thu, 14 Aug 2008 15:03:08 -0700 Subject: [PATCH] bug 450641 - Add missing JS_free call. --- js/src/jsstr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/js/src/jsstr.cpp b/js/src/jsstr.cpp index 02f4b17c19..e9db63c555 100644 --- a/js/src/jsstr.cpp +++ b/js/src/jsstr.cpp @@ -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; -- 2.11.4.GIT