realloc(): invalid next size
- by Kewley
I'm having a problem with the realloc function. I'm using C only (so no vector) with LibCurl. The problem I'm having is that I'm getting the following error (realloc(): invalid next size) on the 12th iteration of the write_data function (the function I pass to Curl as a callback, it is called each time libcurl has some data to pass back (data is passed in chunks) ).
Trace:
Source: http://pastebin.com/WBWhV5fr
Thanks in advance,