X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Firi.c;fp=src%2Firi.c;h=b1e0bf89cd9bc2a9caf55e2e533f1cc2b6a23d12;hp=e3909d50bb71f6767b8c23d9c0566f5098363b20;hb=66dd4bda74bb78915b92cac4e7bfd32a3fe9d957;hpb=523c3dfcbc3e6858ea94288554d67d3c1208a7c1 diff --git a/src/iri.c b/src/iri.c index e3909d50..b1e0bf89 100644 --- a/src/iri.c +++ b/src/iri.c @@ -298,6 +298,7 @@ iri_new (void) struct iri *i = xmalloc (sizeof (struct iri)); i->uri_encoding = opt.encoding_remote ? xstrdup (opt.encoding_remote) : NULL; i->content_encoding = NULL; + i->orig_url = NULL; i->utf8_encode = opt.enable_iri; return i; } @@ -308,6 +309,7 @@ iri_free (struct iri *i) { xfree_null (i->uri_encoding); xfree_null (i->content_encoding); + xfree_null (i->orig_url); xfree (i); }