mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Fixed the memleak
This commit is contained in:
parent
c571aea567
commit
83d0d6f84a
@ -89,6 +89,8 @@ ecmascript_check_url(unsigned char *url, unsigned char *frame)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
mem_free_if(u[url_index].url);
|
||||
mem_free_if(u[url_index].frame);
|
||||
u[url_index].url = url;
|
||||
u[url_index].frame = frame;
|
||||
url_index++;
|
||||
|
Loading…
Reference in New Issue
Block a user