From 7717212912e4fa05761809b215467c39036843bb Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 11 Oct 2000 10:58:37 +0000 Subject: free the URL string if that was allocated --- lib/url.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index 822f14e12..2cdb0c06e 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); -- cgit v1.2.3