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;h=dc71798bc3fdd2d77743759ff665f06a9c6a5dc7;hp=7d986ca554595184c10f3301d79961baf56f2378;hb=301048b51990573e58a30dc4a5bb4ec285cad554;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a 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;