mirror of
https://github.com/curl/curl.git
synced 2026-05-16 14:46:21 +03:00
free the URL string if that was allocated
This commit is contained in:
parent
ccb2b5d22c
commit
7717212912
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue