aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/url.c b/lib/url.c
index ac97e23d3..9b844eda8 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -233,14 +233,12 @@ CURLcode curl_close(CURL *curl)
void *protocol = data->proto.generic;
- /* total session cleanup */
+ /* total session cleanup (frees 'data' as well!)*/
urlfree(data, TRUE);
if(protocol)
free(protocol);
- free(data);
-
return CURLE_OK;
}