1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Fixed the memleak

This commit is contained in:
Witold Filipczyk 2006-04-02 17:57:12 +02:00 committed by Witold Filipczyk
parent c571aea567
commit 83d0d6f84a

View File

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