bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Misuse of idn2_free()


From: Gisle Vanem
Subject: Re: [Bug-wget] Misuse of idn2_free()
Date: Sat, 8 Apr 2017 12:04:03 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

A bit simpler patch:

--- a/url.c 2017-04-08 11:24:21
+++ b/url.c 2017-04-08 12:01:07
@@ -943,7 +943,8 @@
           if (new)
             {
               xfree (u->host);
-              u->host = new;
+              u->host = xstrdup (new);
+              idn2_free (new);
               host_modified = true;
             }
         }

--
--gv



reply via email to

[Prev in Thread] Current Thread [Next in Thread]