summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-06 17:42:42 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-06 17:42:42 +0100
commit3c7d93059b8d5ebbbfe65e86059bd30200bde79a (patch)
tree8600e833719e22e44d73ff6cf4dc71174e59bf4b /src/modules
parentb03c0739db10c8b669f9fee47ec74166a06143ed (diff)
wl text input - handle out of mem and free half done struct
stgruct we alloced is not freed if a child element setup fails... fixes a technical leak. coverity found it. fix CID 1403931
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/wl_text_input/e_mod_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/wl_text_input/e_mod_main.c b/src/modules/wl_text_input/e_mod_main.c
index 324f431..210c832 100644
--- a/src/modules/wl_text_input/e_mod_main.c
+++ b/src/modules/wl_text_input/e_mod_main.c
@@ -793,6 +793,7 @@ _e_text_input_manager_cb_text_input_create(struct wl_client *client, struct wl_r
793 1, id); 793 1, id);
794 if (!text_input->resource) 794 if (!text_input->resource)
795 { 795 {
796 free(text_input);
796 wl_client_post_no_memory(client); 797 wl_client_post_no_memory(client);
797 ERR("could not create wl_resource for text input"); 798 ERR("could not create wl_resource for text input");
798 return; 799 return;