[Openvas-commits] r5410 - trunk/winslad

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 7 00:43:45 CEST 2009


Author: timb
Date: 2009-10-07 00:43:44 +0200 (Wed, 07 Oct 2009)
New Revision: 5410

Modified:
   trunk/winslad/ChangeLog
   trunk/winslad/xml.cpp
Log:
Fixed resource leak


Modified: trunk/winslad/ChangeLog
===================================================================
--- trunk/winslad/ChangeLog	2009-10-06 22:39:52 UTC (rev 5409)
+++ trunk/winslad/ChangeLog	2009-10-06 22:43:44 UTC (rev 5410)
@@ -1,3 +1,7 @@
+2009-10-06  Tim Brown <timb at openvas.org>
+
+	* xml.cpp: Fixed resource leak.
+
 2009-04-16  Felix Wolfsteller <felix.wolfsteller at intevation.de>
 
 	* ChangeLog, Makefile: Donated new lines at end of files.

Modified: trunk/winslad/xml.cpp
===================================================================
--- trunk/winslad/xml.cpp	2009-10-06 22:39:52 UTC (rev 5409)
+++ trunk/winslad/xml.cpp	2009-10-06 22:43:44 UTC (rev 5410)
@@ -390,6 +390,7 @@
   if (!parser)
     {
       PRINTF("could not create XML parser\r\n");
+      fclose(file);
       return -1;
     }
 



More information about the Openvas-commits mailing list