On Tue, Feb 8, 2011 at 10:30 AM, Lars Nilsson <[email protected]> wrote: > On Tue, Feb 8, 2011 at 9:50 AM, Niall Twomey <[email protected]> wrote: >> curl_formadd( &formpost, >> &lastptr, >> CURLFORM_COPYNAME, it->first.c_str(), >> CURLFORM_PTRCONTENTS, it->second.c_str(), >> CURLFORM_END ); > ... >> curl_formfree( formpost ); > > Perhaps you're blowing away memory held by it->second (which should be > managed by the std::string destructor), when you use curl_formfree(). > Perhaps CURLFORM_COPYCONTENTS would be appropriate?
Ok, so ignore this advice, it's not relevant. I blame it on brain-freeze, or something like that. Lars Nilsson ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
