raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=74832777f4057e86e8ccca7214bd7445881f3abd

commit 74832777f4057e86e8ccca7214bd7445881f3abd
Author: Woochanlee <wc0917....@samsung.com>
Date:   Wed Apr 28 10:45:26 2021 +0100

    efl_net_dialer_http: Do curl shutdown in destructor
    
    Summary:
    curl_global_init() in efl_net_dialer_http constructor.
    curl_global_cleanup() need to call when it destructor.
    
    Without this, module and libcurl internal data are leaking.
    
    Reviewers: Hermet, raster
    
    Reviewed By: raster
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D12259
---
 src/lib/ecore_con/efl_net_dialer_http.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/ecore_con/efl_net_dialer_http.c 
b/src/lib/ecore_con/efl_net_dialer_http.c
index 7215d9a195..439acbc099 100644
--- a/src/lib/ecore_con/efl_net_dialer_http.c
+++ b/src/lib/ecore_con/efl_net_dialer_http.c
@@ -1198,6 +1198,8 @@ _efl_net_dialer_http_efl_object_destructor(Eo *o, 
Efl_Net_Dialer_Http_Data *pd)
    _secure_free(&pd->authentication.password);
    eina_stringshare_replace(&pd->ssl.ca, NULL);
    eina_stringshare_replace(&pd->ssl.crl, NULL);
+
+   _c_shutdown();
 }
 
 static void

-- 


Reply via email to