diff options
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; } |