]> sjero.net Git - wget/commitdiff
stsc's patch to initialize, free hs->message.
authorMicah Cowan <micah@cowan.name>
Mon, 23 Jun 2008 19:54:50 +0000 (12:54 -0700)
committerMicah Cowan <micah@cowan.name>
Mon, 23 Jun 2008 19:54:50 +0000 (12:54 -0700)
src/ChangeLog
src/http.c

index b3defda019ee8fec1d3f47bfad0dae7ede52864b..7ed11cb1956d1f9806e82e767e32f8c917fe3d46 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-22  Steven Schubiger  <stsc@members.fsf.org>
+
+       * http.c: Explicitly initialize and deallocate the message
+       string used by the -nv --spider functionality.
+
 2008-06-22  Steven Schubiger  <schubiger@gmail.com>
 
        * http.c: Make -nv --spider include the file's name when it
 2008-06-22  Steven Schubiger  <schubiger@gmail.com>
 
        * http.c: Make -nv --spider include the file's name when it
index d17b5db12f70515160f94845907f18271fcaee0b..f79b1e7ad082c79d9f3908fa7ecdd6c330e69c8a 100644 (file)
@@ -1323,6 +1323,7 @@ free_hstat (struct http_stat *hs)
   xfree_null (hs->rderrmsg);
   xfree_null (hs->local_file);
   xfree_null (hs->orig_file_name);
   xfree_null (hs->rderrmsg);
   xfree_null (hs->local_file);
   xfree_null (hs->orig_file_name);
+  xfree_null (hs->message);
 
   /* Guard against being called twice. */
   hs->newloc = NULL;
 
   /* Guard against being called twice. */
   hs->newloc = NULL;
@@ -1442,6 +1443,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
   hs->newloc = NULL;
   hs->remote_time = NULL;
   hs->error = NULL;
   hs->newloc = NULL;
   hs->remote_time = NULL;
   hs->error = NULL;
+  hs->message = NULL;
 
   conn = u;
 
 
   conn = u;