Hello. All ~ 

 

I made a patch for elm_module. 

Null setting for freed pointer ~ 

 

Can anybody check about this ?

Thanks. 

Index: src/lib/elm_module.c
===================================================================
--- src/lib/elm_module.c        (revision 57211)
+++ src/lib/elm_module.c        (working copy)
@@ -176,8 +176,17 @@ _elm_module_unload(Elm_Module *m)
    eina_stringshare_del(m->data_dir);
    eina_stringshare_del(m->bin_dir);
    if (m->shutdown_func) m->shutdown_func(m);
-   if (m->api) free(m->api);
-   dlclose(m->handle);
+   if (m->api)
+     {
+        free(m->api);
+        m->api = NULL;
+     }
+   if (m->handle)
+     {
+        if (m->shutdown_func) m->shutdown_func(m);
+        dlclose(m->handle);
+        m->handle = NULL;
+     }
 }
 
 Elm_Module *
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to