SF.net SVN: geany:[5002] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sun Jun 6 17:14:35 UTC 2010


Revision: 5002
          http://geany.svn.sourceforge.net/geany/?rev=5002&view=rev
Author:   eht16
Date:     2010-06-06 17:14:35 +0000 (Sun, 06 Jun 2010)

Log Message:
-----------
Fix two memory leaks (patch by Daniel Marjamaki, thanks).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/tagmanager/tm_workspace.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-06-05 12:16:42 UTC (rev 5001)
+++ trunk/ChangeLog	2010-06-06 17:14:35 UTC (rev 5002)
@@ -1,3 +1,9 @@
+2010-06-06  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * tagmanager/tm_workspace.c:
+   Fix two memory leaks (patch by Daniel Marjamaki, thanks).
+
+
 2010-06-04  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
 
  * doc/geany.txt, doc/geany.html:
@@ -14,7 +20,7 @@
    Fix not closed FILE pointer on early exit
    (patch by Daniel Marjamaki, thanks).
  * doc/images/*.png:
-   Update images for Geany0.19.
+   Update images for Geany 0.19.
  * src/sidebar.c:
    Destroy the default symbol list treeview only once
    (fixes gtk_widget_destroy warning on exit).
@@ -161,7 +167,7 @@
 
  * src/support.h:
    Replace one non breaking space by normal space. Patch by
-   Daniel Marjamak.
+   Daniel Marjamaki.
 
 
 2010-05-14  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/tagmanager/tm_workspace.c
===================================================================
--- trunk/tagmanager/tm_workspace.c	2010-06-05 12:16:42 UTC (rev 5001)
+++ trunk/tagmanager/tm_workspace.c	2010-06-06 17:14:35 UTC (rev 5002)
@@ -284,7 +284,11 @@
 #endif
 
 	if (NULL == theWorkspace || NULL == (fp = g_fopen(temp_file, "w")))
+	{
+		g_free(temp_file);
+		g_free(temp_file2);
 		return FALSE;
+	}
 
 	includes_files_hash = g_hash_table_new_full (tm_file_inode_hash,
 												 g_direct_equal,


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list