|
|
cURL Mailing List Monthly Index Single Mail
curl-library Archives
Re: RE: [mem curl]
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 7 Nov 2009 09:41:23 +0100 (CET)
On Sat, 7 Nov 2009, ื๓าใ wrote:
> curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, &buff);
That's your app's problem.
> more strange, i find author call function to free buff.
Then it is likely to crash there, or at least ruin the heap.
> So what my question is that do we need to allocate memery for buff by
We already answered this. You provide a pointer to *something* that is then
You can allocate it, you can have it on the stack or you can have it as a
-- / daniel.haxx.se
-------------------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated November 16, 2009.
web site info