From 7717212912e4fa05761809b215467c39036843bb Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 11 Oct 2000 10:58:37 +0000 Subject: [PATCH] free the URL string if that was allocated --- lib/url.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/url.c b/lib/url.c index 822f14e..2cdb0c0 100644 --- a/lib/url.c +++ b/lib/url.c @@ -235,6 +235,10 @@ void static urlfree(struct UrlData *data, bool totally) if(data->free_referer) free(data->referer); + if(data->bits.urlstringalloc) + /* the URL is allocated, free it! */ + free(data->url); + cookie_cleanup(data->cookies); free(data); -- 2.7.4