raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=3c7d93059b8d5ebbbfe65e86059bd30200bde79a

commit 3c7d93059b8d5ebbbfe65e86059bd30200bde79a
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Aug 6 17:42:42 2019 +0100

    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
---
 src/modules/wl_text_input/e_mod_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/wl_text_input/e_mod_main.c 
b/src/modules/wl_text_input/e_mod_main.c
index 324f43173..210c8321e 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
                                              1, id);
    if (!text_input->resource)
      {
+        free(text_input);
         wl_client_post_no_memory(client);
         ERR("could not create wl_resource for text input");
         return;

-- 


Reply via email to