diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-10-11 10:58:37 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-10-11 10:58:37 +0000 |
commit | 7717212912e4fa05761809b215467c39036843bb (patch) | |
tree | cac0d7f22d77bea671ed3c4cbf0489732f559371 /lib | |
parent | ccb2b5d22cbecce7f8d908e97c7e178865e6034b (diff) |
free the URL string if that was allocated
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 4 insertions, 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); |