Each time a new Curl object is created util_curl_init() leaks a small string buffer. The attached patch fixes the leak --- curl_easy_setopt() strdup's its argument; the caller does not need to keep the buffer around for it. This is a patch against the current CVS HEAD.
Patch to fix memory leak
Applied, thanks!
https://github.com/p/pycurl/pull/35