Crash when calling destroy_async_data in curl

I got problem recently with curl, my app crashes after sending request inside destroy_async_data function. When freeing data with free(async->hostname) it crashed because didn’t pass msvcrt heap check.

After 1 day debugging, contemplating and day dreaming finally I got this mailing list thread which exactly same as my problem. Apparently this is quite common problem and not curl specific, and trust me it is 100% my fault because I forgot to follow simple rule. The rule is always use same CRT for your modules, but actually I need to revisit this rule.

http://curl.haxx.se/mail/lib-2011-10/0080.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s