aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-06-13 08:11:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-06-13 08:11:45 +0000
commit2488fff451863db7b18d7a4adf412536c1d864c6 (patch)
tree96eee4f197d41989fa65a2881a5571ea1c82f38f /lib
parent611f50fb7688344076b5bc4d305461e6dcca8a56 (diff)
free-twice problem corrected
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;
}