From 2488fff451863db7b18d7a4adf412536c1d864c6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 13 Jun 2000 08:11:45 +0000 Subject: free-twice problem corrected --- lib/url.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/url.c') 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; } -- cgit v1.2.3