[Openvas-commits] r6083 - in trunk/openvas-libraries: . misc
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Dec 7 18:08:46 CET 2009
Author: timb
Date: 2009-12-07 18:08:45 +0100 (Mon, 07 Dec 2009)
New Revision: 6083
Modified:
trunk/openvas-libraries/ChangeLog
trunk/openvas-libraries/misc/store.c
Log:
Fixed a potential memory leak
Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog 2009-12-07 15:57:00 UTC (rev 6082)
+++ trunk/openvas-libraries/ChangeLog 2009-12-07 17:08:45 UTC (rev 6083)
@@ -1,3 +1,7 @@
+2009-12-07 Tim Brown <timb at openvas.org>
+
+ * misc/store.c: Fixed a potential memory leak.
+
2009-12-07 Michael Wiegand <michael.wiegand at intevation.de>
Post-release version bump.
Modified: trunk/openvas-libraries/misc/store.c
===================================================================
--- trunk/openvas-libraries/misc/store.c 2009-12-07 15:57:00 UTC (rev 6082)
+++ trunk/openvas-libraries/misc/store.c 2009-12-07 17:08:45 UTC (rev 6083)
@@ -323,7 +323,18 @@
g_free(dummy);
- if (desc_file == NULL || path == NULL) return; // g_build_filename failed
+ if (desc_file == NULL || path == NULL)
+ {
+ if (desc_file != NULL)
+ {
+ g_free(desc_file);
+ }
+ if (path != NULL)
+ {
+ g_free(path);
+ }
+ return; // g_build_filename failed
+ }
nvti_t * n = nvti_new();
More information about the Openvas-commits
mailing list