projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccb2b5d
)
free the URL string if that was allocated
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 11 Oct 2000 10:58:37 +0000
(10:58 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 11 Oct 2000 10:58:37 +0000
(10:58 +0000)
lib/url.c
patch
|
blob
|
history
diff --git
a/lib/url.c
b/lib/url.c
index
822f14e
..
2cdb0c0
100644
(file)
--- 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);