From: Daniel Stenberg Date: Wed, 11 Oct 2000 10:58:37 +0000 (+0000) Subject: free the URL string if that was allocated X-Git-Tag: curl-7_4_1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7717212912e4fa05761809b215467c39036843bb;p=thirdparty%2Fcurl.git free the URL string if that was allocated --- diff --git a/lib/url.c b/lib/url.c index 822f14e128..2cdb0c06e0 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);