seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=496d7c9b4be883e668a27dc32306449ba8f1771c

commit 496d7c9b4be883e668a27dc32306449ba8f1771c
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Fri Jun 26 10:12:25 2015 +0900

    edje_externals: Fix wrong free.
    
    _signal is used after free. _signal will be freed soon any way.
    This was introduced in 3da3082.
    
    This fixes coverity CID 1308263.
---
 src/edje_externals/elm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/edje_externals/elm.c b/src/edje_externals/elm.c
index 8ce77ac..d85165d 100644
--- a/src/edje_externals/elm.c
+++ b/src/edje_externals/elm.c
@@ -78,12 +78,11 @@ external_signal(void *data EINA_UNUSED, Evas_Object *obj, 
const char *sig,
      }
 
    content = type->content_get(type->data, obj, _signal);
-   free(_signal);
    if (content)
      edje_object_signal_emit(content, sig + (p - _signal), source);
 
 on_error:
-   if (_signal) free(_signal);
+   free(_signal);
    return;
 }
 

-- 


Reply via email to