1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

[libcss] mem_free in resolve_url

This commit is contained in:
Witold Filipczyk 2023-05-28 20:48:26 +02:00
parent c1fc9ff532
commit 1a05e20203

View File

@ -117,10 +117,11 @@ resolve_url(void *pw, const char *base, lwc_string *rel, lwc_string **abs)
lerror = lwc_intern_string(url, strlen(url), abs);
if (lerror != lwc_error_ok) {
*abs = NULL;
mem_free(url);
return lerror == lwc_error_oom ? CSS_NOMEM : CSS_INVALID;
}
// fprintf(stderr, "abs=%s\n", lwc_string_data(*abs));
mem_free(url);
return CSS_OK;
}