free the URL string if that was allocated

This commit is contained in:
Daniel Stenberg 2000-10-11 10:58:37 +00:00
parent ccb2b5d22c
commit 7717212912

View File

@ -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);