Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_file


Modified Files:
        ecore_file.c 


Log Message:
Fix leak

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/ecore_file.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ecore_file.c        22 Feb 2005 12:38:17 -0000      1.3
+++ ecore_file.c        22 Mar 2005 11:30:33 -0000      1.4
@@ -211,9 +211,11 @@
                    }
               }
             /* nowhwre to go? just append it */
-            f = strdup(dp->d_name);
             if (!l)
-               list = evas_list_append(list, f);
+              {
+                 f = strdup(dp->d_name);
+                 list = evas_list_append(list, f);
+              }
          }
      }
    closedir(dirp);




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to