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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Dec 7 16:17:14 CET 2009


Author: timb
Date: 2009-12-07 16:17:12 +0100 (Mon, 07 Dec 2009)
New Revision: 6081

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/omp.c
Log:
Fixed up some free()s


Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-12-07 14:20:51 UTC (rev 6080)
+++ trunk/openvas-manager/ChangeLog	2009-12-07 15:17:12 UTC (rev 6081)
@@ -1,3 +1,7 @@
+2009-12-07  Tim Brown <timb at openvas.org>
+
+	* src/omp.c: Fixed up some free()s.
+
 2009-12-02  Michael Wiegand <michael.wiegand at greenbone.net>
 
 	Fixed a bug which caused NVT selections in non-growing families to be

Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c	2009-12-07 14:20:51 UTC (rev 6080)
+++ trunk/openvas-manager/src/omp.c	2009-12-07 15:17:12 UTC (rev 6081)
@@ -5414,7 +5414,7 @@
               if (hosts == NULL)
                 {
                   request_delete_task (&current_client_task);
-                  g_free (description);
+                  free (description);
                   free (tsk_uuid);
                   SEND_TO_CLIENT_OR_FAIL
                    (XML_ERROR_SYNTAX
@@ -5424,7 +5424,7 @@
                   set_client_state (CLIENT_AUTHENTIC);
                   break;
                 }
-              g_free (description);
+              free (description);
 
               target_name = g_strdup_printf ("Imported target for task %s",
                                              tsk_uuid);
@@ -5947,7 +5947,7 @@
                     g_free (response);
                     g_free (name);
                     g_free (description64);
-                    g_free (tsk_uuid);
+                    free (tsk_uuid);
                     if (ret)
                       {
                         error_send_to_client (error);
@@ -6252,7 +6252,7 @@
                 g_free (last_report);
                 g_free (second_last_report);
                 free (name);
-                free (description64);
+                g_free (description64);
                 free (tsk_uuid);
                 if (send_to_client (line))
                   {



More information about the Openvas-commits mailing list