bug in schannel connection shutdown?
Date: Thu, 9 Aug 2012 12:08:20 +0200
I'm using libcurl 7.27.0 with schannel on windows with MSVC2008,
My code runs allocates and deallocates handles on demand, and
adds/removes them all to a single multi handle, so always
If I then call curl_multi_cleanup() (when shutting down the entire
program), I get accesses to free()d memory in schannel connection
cleanup. I don't get such issues on linux with gnutls.
If I set CURLOPT_FORBID_REUSE, connections are closed earlier (I guess
either in curl_multi_perform() or curl_easy_cleanup()), and the issue
The attached file reproduces the issue.
-- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan
- text/x-csrc attachment: testcase.c