In the future please make your report in English. I will attempt to translate. http-post example has curl_global_cleanup in a different position than postinmemory example. You think postinmemory example is wrong.
I agree because in postinmemory example curl_global_cleanup would not be called if curl_easy_init fails. I have made the change. Thanks.