X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fos_xml%2Fos_xml_node_access.c;fp=src%2Fos_xml%2Fos_xml_node_access.c;h=dc71798bc3fdd2d77743759ff665f06a9c6a5dc7;hp=7d986ca554595184c10f3301d79961baf56f2378;hb=a62b46c229549212d536867b7e5e24d7576ebe8b;hpb=d623b82886b9b5fbba3fa27c3bfac51f3f8af108 diff --git a/src/os_xml/os_xml_node_access.c b/src/os_xml/os_xml_node_access.c index 7d986ca..dc71798 100755 --- a/src/os_xml/os_xml_node_access.c +++ b/src/os_xml/os_xml_node_access.c @@ -1,11 +1,11 @@ -/* @(#) $Id: os_xml_node_access.c,v 1.6 2009/06/24 17:06:32 dcid Exp $ */ +/* @(#) $Id$ */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -32,9 +32,13 @@ void OS_ClearNode(xml_node **node) while(node[i]) { if(node[i]->element) + { free(node[i]->element); + } if(node[i]->content) + { free(node[i]->content); + } if(node[i]->attributes) { int j=0;