2009-09-16 Ramon Novoa <rnovoa@artica.es>

* pandora_windows_service.cc: Fixed a memory leak.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1951 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2009-09-16 17:10:28 +00:00
parent 09b43fb34a
commit 70ce6c151f
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-09-16 Ramon Novoa <rnovoa@artica.es>
* pandora_windows_service.cc: Fixed a memory leak.
2009-09-11 Ramon Novoa <rnovoa@artica.es> 2009-09-11 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_inventory.h, * modules/pandora_module_inventory.h,

View File

@ -744,6 +744,7 @@ Pandora_Windows_Service::sendXml (Pandora_Module_List *modules) {
doc->InsertEndChild (*agent); doc->InsertEndChild (*agent);
saved = doc->SaveFile(); saved = doc->SaveFile();
delete doc; delete doc;
delete decl;
delete agent; delete agent;
if (!saved) { if (!saved) {