Removed unnecessary null check before cx->free.

This commit is contained in:
Luke Wagner
2009-08-11 11:10:44 -07:00
parent 60395c9cff
commit 47f66c86aa

View File

@@ -1385,8 +1385,7 @@ array_toSource(JSContext *cx, uintN argc, jsval *vp)
if (IS_SHARP(he)) {
if (!js_AppendLiteral(buf, "[]"))
goto out;
if (sharpchars)
cx->free(sharpchars);
cx->free(sharpchars);
goto make_string;
}
#endif