Bug 1071996 - Use JS_free to free memory allocated by JS_malloc in testXDR.cpp. r=Waldo

--HG--
extra : rebase_source : 19683822dcfac8efb5b09916c751ea352f57804e
This commit is contained in:
Guilherme Goncalves 2014-09-24 09:54:00 -04:00
parent e3dcd939e6
commit d37e99f167

View File

@ -32,7 +32,7 @@ CompileScriptForPrincipalsVersionOrigin(JSContext *cx, JS::HandleObject obj,
.setVersion(version);
JS::RootedScript script(cx);
JS::Compile(cx, obj, options, chars, nchars, &script);
free(chars);
JS_free(cx, chars);
return script;
}