summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSrivardhan Hebbar <sri.hebbar@samsung.com>2015-04-22 14:19:46 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-22 15:10:19 +0200
commit05881ea61ab945fe255a71f9f900dc0fedc7f4f6 (patch)
tree50be5d26e40229968a1c1d6bb589b9a5f0866d7a /src
parentd560fe99a1aa9038355f4fbe442a88e8a064661d (diff)
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 <sri.hebbar@samsung.com> Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2398 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_con/ecore_con.c2
1 files changed, 0 insertions, 2 deletions
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,
2950 else 2950 else
2951 lk->done_cb(NULL, NULL, NULL, 0, (void *)lk->data); 2951 lk->done_cb(NULL, NULL, NULL, 0, (void *)lk->data);
2952 2952
2953 free(svr->name);
2954 free(lk); 2953 free(lk);
2955 free(svr);
2956} 2954}
2957 2955
2958#include "ecore_con_base.eo.c" 2956#include "ecore_con_base.eo.c"