From: Srivardhan Hebbar Date: Wed, 22 Apr 2015 12:19:46 +0000 (+0200) Subject: ecore_con: fix dns lookup crash issue. X-Git-Tag: v1.14.0-beta3~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=05881ea61ab945fe255a71f9f900dc0fedc7f4f6;p=platform%2Fupstream%2Fefl.git ecore_con: fix dns lookup crash issue. Summary: When executed ecore_con_lookup_example function, we were getting a crash. This is the fix for the crash. I analysed it in the valgrind and found the error. Valgrind reported invalid free at this place. svr->name is getting freed in _ecore_con_server_eo_base_destructor function and svr is getting freed in ecore_con_shutdown function. Signed-off-by: Srivardhan Hebbar Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2398 Signed-off-by: Cedric BAIL --- diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index e06a1a31df..3e6ad7af54 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c @@ -2950,9 +2950,7 @@ _ecore_con_lookup_done(void *data, else lk->done_cb(NULL, NULL, NULL, 0, (void *)lk->data); - free(svr->name); free(lk); - free(svr); } #include "ecore_con_base.eo.c"