Enlightenment CVS committal

Author  : barbieri
Project : e17
Module  : libs/epsilon

Dir     : e17/libs/epsilon/src/bin


Modified Files:
        epsilon_thumb_test.c epsilon_thumbd.c 


Log Message:
Remove leaks and micro optimizations.

This patch remove some leaks and use of uninitialized memory (as
reported by valgrind on x86).

Also some micro-optimizations to handle strings/path creation better
and more uniformly, do bit less stats.

Code is also a bit cleaner.

===================================================================
RCS file: /cvs/e/e17/libs/epsilon/src/bin/epsilon_thumb_test.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- epsilon_thumb_test.c        29 Jul 2007 00:38:09 -0000      1.7
+++ epsilon_thumb_test.c        23 Oct 2007 22:04:53 -0000      1.8
@@ -69,6 +69,7 @@
                }
                free(realpath);
        }
+       ecore_list_destroy(files);
 
        ecore_main_loop_begin();
 
===================================================================
RCS file: /cvs/e/e17/libs/epsilon/src/bin/epsilon_thumbd.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- epsilon_thumbd.c    3 Aug 2007 02:20:05 -0000       1.9
+++ epsilon_thumbd.c    23 Oct 2007 22:04:53 -0000      1.10
@@ -121,6 +121,7 @@
        buf = epsilond_socket_path(EPSILOND_SOCK);
 
        if (debug) printf("socket name %s\n", buf);
+       free(buf);
 
        /*
         * Setup the IPC server to handle completed notifications
@@ -242,6 +243,7 @@
                         *  Free thumbnail data associated with this client.
                         */
                        epsilond_client_clean(cl);
+                       free(cl);
 
                        break;
                }
@@ -279,6 +281,7 @@
                         *  Free thumbnail data associated with this client.
                         */
                        epsilond_client_clean(cl);
+                       free(cl);
 
                        break;
                }



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to