e_module: fix null pointer dereference 45/49345/1
authorBoram Park <boram1288.park@samsung.com>
Tue, 13 Oct 2015 00:54:50 +0000 (09:54 +0900)
committerBoram Park <boram1288.park@samsung.com>
Tue, 13 Oct 2015 00:54:50 +0000 (09:54 +0900)
Change-Id: Ibcf3b5b998a3a27713de25626a4c62493a174fb9

src/bin/e_module.c

index c06ac11..e853b60 100644 (file)
@@ -309,6 +309,8 @@ e_module_new(const char *name)
 
    if (!name) return NULL;
    m = E_OBJECT_ALLOC(E_Module, E_MODULE_TYPE, _e_module_free);
+   if (!m) return NULL;
+
    if (name[0] != '/')
      {
         Eina_Stringshare *path = NULL;