diff --git a/src/ecmascript/ecmascript.c b/src/ecmascript/ecmascript.c index 09569440..365f3842 100644 --- a/src/ecmascript/ecmascript.c +++ b/src/ecmascript/ecmascript.c @@ -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++;