Merge commit 'v2.5.1'
[ossec-hids.git] / src / os_xml / os_xml_node_access.c
index 7d986ca..dc71798 100755 (executable)
@@ -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;