mirror of
https://github.com/mirror/wget.git
synced 2024-12-28 22:00:27 +08:00
* src/iri.c: Fix WIN32 idn2_free, forgotten code
This commit is contained in:
parent
b2c38d33e1
commit
fc2f4233ed
@ -290,6 +290,13 @@ idn_encode (const struct iri *i, const char *host)
|
|||||||
|
|
||||||
xfree (utf8_encoded);
|
xfree (utf8_encoded);
|
||||||
|
|
||||||
|
if (ret == IDN2_OK && ascii_encoded)
|
||||||
|
{
|
||||||
|
char *tmp = xstrdup (ascii_encoded);
|
||||||
|
idn2_free (ascii_encoded);
|
||||||
|
ascii_encoded = tmp;
|
||||||
|
}
|
||||||
|
|
||||||
return ret == IDN2_OK ? ascii_encoded : NULL;
|
return ret == IDN2_OK ? ascii_encoded : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user