e_module: fix memory leak 46/49346/1
authorBoram Park <boram1288.park@samsung.com>
Tue, 13 Oct 2015 00:55:02 +0000 (09:55 +0900)
committerBoram Park <boram1288.park@samsung.com>
Tue, 13 Oct 2015 00:55:02 +0000 (09:55 +0900)
Change-Id: I66f6d6ca14d38a4c293885927391bb2742d91347

src/bin/e_module.c

index e853b60..dd29ba1 100644 (file)
@@ -744,6 +744,11 @@ _e_module_desktop_list_cb(const Eina_Hash *hash EINA_UNUSED, const void *key EIN
    if (desktop)
      {
         md = E_NEW(E_Module_Desktop, 1);
+        if (!md)
+          {
+             efreet_desktop_free(desktop);
+             return EINA_FALSE;
+          }
         md->desktop = desktop;
         md->dir = eina_stringshare_ref(data);
         *l = eina_list_append(*l, md);