1
0
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:
Witold Filipczyk 2024-07-16 21:39:04 +02:00
parent ecf1b56c5f
commit 656d8a32ea

View File

@ -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);