From 25585dce47caa71530c2bb8f7c3d214be5eb4557 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Mon, 23 Jun 2008 12:54:50 -0700 Subject: [PATCH] stsc's patch to initialize, free hs->message. --- src/ChangeLog | 5 +++++ src/http.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index b3defda0..7ed11cb1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-06-22 Steven Schubiger + + * http.c: Explicitly initialize and deallocate the message + string used by the -nv --spider functionality. + 2008-06-22 Steven Schubiger * http.c: Make -nv --spider include the file's name when it diff --git a/src/http.c b/src/http.c index d17b5db1..f79b1e7a 100644 --- a/src/http.c +++ b/src/http.c @@ -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->message); /* 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->message = NULL; conn = u; -- 2.39.2