From: <enl...@li...> - 2005-08-30 04:51:05
|
Enlightenment CVS committal Author : sebastid Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_con Modified Files: ecore_con_dns.c Log Message: Fix cache free. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_con/ecore_con_dns.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- ecore_con_dns.c 30 Aug 2005 04:35:24 -0000 1.14 +++ ecore_con_dns.c 30 Aug 2005 04:50:55 -0000 1.15 @@ -705,14 +705,11 @@ { int i; - free(cache->he->h_addr_list); free(cache->he->h_name); - i = 0; - while (cache->he->h_addr_list[i]) - free(cache->he->h_addr_list[i++]); - i = 0; - while (cache->he->h_aliases[i]) - free(cache->he->h_aliases[i++]); + free(cache->he->h_addr_list[0]); + free(cache->he->h_addr_list); + for (i = 0; cache->he->h_aliases[i]; i++) + free(cache->he->h_aliases[i]); free(cache->he->h_aliases); free(cache->he); free(cache); |