mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[spidermonkey] Leak in URL
This commit is contained in:
parent
ecf1b56c5f
commit
656d8a32ea
@ -96,7 +96,9 @@ url_finalize(JS::GCContext *op, JSObject *url_obj)
|
||||
struct eljs_url *url = JS::GetMaybePtrFromReservedSlot<struct eljs_url>(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);
|
||||
|
Loading…
Reference in New Issue
Block a user