diff --git a/src/ecmascript/spidermonkey/url.cpp b/src/ecmascript/spidermonkey/url.cpp index 36843ba30..fa04fe6ca 100644 --- a/src/ecmascript/spidermonkey/url.cpp +++ b/src/ecmascript/spidermonkey/url.cpp @@ -96,7 +96,9 @@ url_finalize(JS::GCContext *op, JSObject *url_obj) struct eljs_url *url = JS::GetMaybePtrFromReservedSlot(url_obj, 0); if (url) { + char *uristring = url->uri.string; done_uri(&url->uri); + mem_free_if(uristring); mem_free_if(url->hash); mem_free_if(url->host); mem_free_if(url->pathname);