raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fe781b284c00c2befedde12d88940f3e83304471

commit fe781b284c00c2befedde12d88940f3e83304471
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sat Jul 29 11:08:46 2017 +0900

    edje entry - remove extra else and free as sdtring is null there
    
    string is null so no need to free. not a bug but cleaner and analysers
    dont like it.
    
    found by PVS studio
---
 src/lib/edje/edje_entry.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index 15053795b6..403c946705 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -2303,7 +2303,6 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj EINA_UNUSED,
                        string = compres;
                        free_string = EINA_TRUE;
                     }
-                  else free(compres);
                   compres = NULL;
                }
              else

-- 


Reply via email to