e_comp,e_comp_wl: fix memory leaks 52/183152/1 accepted/tizen/4.0/unified/20180703.101200 submit/tizen_4.0/20180703.051546
authorJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 3 Jul 2018 02:59:02 +0000 (11:59 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 3 Jul 2018 02:59:02 +0000 (11:59 +0900)
Change-Id: Ic0943a47c272c141f3a27156f2226d0c5e59da36

src/bin/e_comp.c
src/bin/e_comp_wl.c

index f53e5f0446a83fef8a8f70c2afadf2f106aa6ea6..b57480b7b139ef23d9fd7e8c191ad787f518cd5b 100644 (file)
@@ -2282,6 +2282,7 @@ e_comp_socket_init(const char *name)
      {
         ERR("Size of buffer is not enough. dir:%s name:%s",
             dir, name);
+        free(dir);
         return EINA_FALSE;
      }
 
index a1e3cefe2135f25c9ad0b1ab7e3a74728bd0a32b..acb715ff51f2b7b609923456c1837f389dfeeab2 100644 (file)
@@ -3333,6 +3333,7 @@ _e_comp_wl_compositor_cb_region_create(struct wl_client *client, struct wl_resou
    if (!(res = wl_resource_create(client, &wl_region_interface, 1, id)))
      {
         ERR("\tFailed to create region resource");
+        eina_tiler_free(tiler);
         wl_resource_post_no_memory(resource);
         return;
      }