[Openvas-commits] r5758 - in trunk/openvas-client: . src/util

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Oct 29 20:37:59 CET 2009


Author: mattm
Date: 2009-10-29 20:37:57 +0100 (Thu, 29 Oct 2009)
New Revision: 5758

Modified:
   trunk/openvas-client/ChangeLog
   trunk/openvas-client/src/util/file_utils.c
Log:
	* src/util/file_utils.c (file_utils_rmdir_rf): Free temporary pathname.

Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog	2009-10-29 14:35:38 UTC (rev 5757)
+++ trunk/openvas-client/ChangeLog	2009-10-29 19:37:57 UTC (rev 5758)
@@ -1,3 +1,7 @@
+2009-10-29  Matthew Mundell <matthew.mundell at intevation.de>
+
+	* src/util/file_utils.c (file_utils_rmdir_rf): Free temporary pathname.
+
 2009-10-29  Felix Wolfsteller <felix.wolfsteller at intevation.de>
 
 	* packaging/debian: Unset svn:externals property.

Modified: trunk/openvas-client/src/util/file_utils.c
===================================================================
--- trunk/openvas-client/src/util/file_utils.c	2009-10-29 14:35:38 UTC (rev 5757)
+++ trunk/openvas-client/src/util/file_utils.c	2009-10-29 19:37:57 UTC (rev 5758)
@@ -72,7 +72,9 @@
 
           while ((entry = g_dir_read_name (directory)) && (ret == 0))
             {
-              ret = file_utils_rmdir_rf (g_build_filename (pathname, entry, NULL));
+              gchar *entry_path = g_build_filename (pathname, entry, NULL);
+              ret = file_utils_rmdir_rf (entry_path);
+              g_free (entry_path);
               if (ret != 0)
                 {
                   g_warning ("Failed to remove %s from %s!", entry, pathname);



More information about the Openvas-commits mailing list