mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[libcss] mem_free in resolve_url
This commit is contained in:
parent
c1fc9ff532
commit
1a05e20203
@ -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);
|
lerror = lwc_intern_string(url, strlen(url), abs);
|
||||||
if (lerror != lwc_error_ok) {
|
if (lerror != lwc_error_ok) {
|
||||||
*abs = NULL;
|
*abs = NULL;
|
||||||
|
mem_free(url);
|
||||||
return lerror == lwc_error_oom ? CSS_NOMEM : CSS_INVALID;
|
return lerror == lwc_error_oom ? CSS_NOMEM : CSS_INVALID;
|
||||||
}
|
}
|
||||||
// fprintf(stderr, "abs=%s\n", lwc_string_data(*abs));
|
|
||||||
|
|
||||||
|
mem_free(url);
|
||||||
return CSS_OK;
|
return CSS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user