aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-01-20 12:52:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-01-20 12:52:34 +0000
commit5a83976c996a33283c3aca29de86d77a238429b9 (patch)
tree0a00ee65223437c65b4b6f5bd9d56d9022d18aa6 /lib/url.c
parentb5276a9a69bd29502b5a8d6711f4c2d94f4c445e (diff)
Markus F.X.J. Oberhumer's patch that reduces memory usage quite a bit by
only allocating the scratch memory buffer once it is needed and not always in the handle.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index c743ed818..de5217d53 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -190,6 +190,9 @@ CURLcode Curl_close(struct SessionHandle *data)
if(data->state.auth_host)
free(data->state.auth_host);
+ if(data->state.scratch)
+ free(data->state.scratch);
+
if(data->change.proxy_alloc)
free(data->change.proxy);