mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
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:
parent
e3dcd939e6
commit
d37e99f167
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user