[Openvas-commits] r3454 - in trunk/openvas-manager: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed May 20 18:41:14 CEST 2009


Author: mattm
Date: 2009-05-20 18:41:14 +0200 (Wed, 20 May 2009)
New Revision: 3454

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/manage.c
Log:
	* src/manage.c (report_task): Correct variable name.  Move free to after
	last use.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-05-20 16:37:13 UTC (rev 3453)
+++ trunk/openvas-manager/ChangeLog	2009-05-20 16:41:14 UTC (rev 3454)
@@ -1,5 +1,10 @@
 2009-05-20  Matthew Mundell <mmundell at intevation.de>
 
+	* src/manage.c (report_task): Correct variable name.  Move free to after
+	last use.
+
+2009-05-20  Matthew Mundell <mmundell at intevation.de>
+
 	Better match HTTP response codes in response statuses.
 
 	* src/omp.c (STATUS_ERROR_SYNTAX, STATUS_ERROR_MUST_AUTH)

Modified: trunk/openvas-manager/src/manage.c
===================================================================
--- trunk/openvas-manager/src/manage.c	2009-05-20 16:37:13 UTC (rev 3453)
+++ trunk/openvas-manager/src/manage.c	2009-05-20 16:41:14 UTC (rev 3454)
@@ -293,12 +293,13 @@
             task_t task;
             int err = find_task (task_uuid, &task);
             g_free (report_path);
-            g_free (task_name);
             if (err)
               {
-                fprintf (stderr, "Failed to find task %s.\n", task_name);
+                fprintf (stderr, "Failed to find task %s.\n", task_uuid);
+                g_free (task_uuid);
                 return TRUE;
               }
+            g_free (task_uuid);
             *task_return = task;
             return FALSE;
           }



More information about the Openvas-commits mailing list