| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: [PATCH] fix memory leak in lib/easy
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 7 Mar 2009 22:33:53 +0100 (CET)
On Sat, 7 Mar 2009, Kamil Dudka wrote:
> The value of 'initialized' is dependent on the order of call
The order is not important. By the API docs you SHOULD call curl_global_init()
If you then choose not to adhere to the API, you risk a "leak" like this yes.
> Well, it works fine if you call curl_global_init and then curl_easy_init.
A) that is not libcurl code.
B) I consider that a bug in the curl tool's code and we should fix it there
> Then it never becomes zero and there is no cleanup. That's not what we need,
It's tough to depend on the counter that is counted up and down from within
-- / daniel.haxx.seReceived on 2009-03-07 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info