Hello everyone, 2012/8/31 Daniel Stenberg <[email protected]> > > On Thu, 9 Aug 2012, Salisbury, Mark wrote: > >>> 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. The attached file reproduces the >>> issue. >> >> >> I've reproduced the issue you reported and I am taking a look at it now. > > > Any news on this? Perhaps someone else on Windows can help Mark here?
I took a look at this issue, but was unable to reproduce it myself. Even with a testcase provided by Mark, I still was not running into invalid memory access errors. Anyway, I created a patch that should avoid such issues by reference counting the credential handle and only allowing it to be freed if it's not needed anymore. Please take a look at the attached patch and tell me if it fixes the problem for you. Thanks. Best regards, Marc
0001-curl_schannel.c-Reference-count-the-credential-sessi.patch
Description: Binary data
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
