Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore


Modified Files:
        ecore_plugin.c 


Log Message:
check if the mem is allocated

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore/ecore_plugin.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ecore_plugin.c      23 Jun 2006 06:41:20 -0000      1.8
+++ ecore_plugin.c      27 Jan 2007 04:05:58 -0000      1.9
@@ -43,6 +43,11 @@
     * Allocate the new plugin and initialize it's fields
     */
    plugin = malloc(sizeof(Ecore_Plugin));
+   if (!plugin)
+     {
+       dlclose(handle);
+       return NULL;
+     }
    memset(plugin, 0, sizeof(Ecore_Plugin));
 
    plugin->group = group_id;



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to