You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2007/08/23 17:18:40 UTC
svn commit: r569036 - /xml/security/trunk/c/src/canon/XSECC14n20010315.cpp
Author: scantor
Date: Thu Aug 23 08:18:39 2007
New Revision: 569036
URL: http://svn.apache.org/viewvc?rev=569036&view=rev
Log:
Make sure attribute members are freed.
Modified:
xml/security/trunk/c/src/canon/XSECC14n20010315.cpp
Modified: xml/security/trunk/c/src/canon/XSECC14n20010315.cpp
URL: http://svn.apache.org/viewvc/xml/security/trunk/c/src/canon/XSECC14n20010315.cpp?rev=569036&r1=569035&r2=569036&view=diff
==============================================================================
--- xml/security/trunk/c/src/canon/XSECC14n20010315.cpp (original)
+++ xml/security/trunk/c/src/canon/XSECC14n20010315.cpp Thu Aug 23 08:18:39 2007
@@ -392,6 +392,15 @@
}
m_exclNSList.clear();
+
+ while (mp_attributes != NULL) {
+
+ mp_currentAttribute = mp_attributes->next;
+ delete mp_attributes;
+ mp_attributes = mp_currentAttribute;
+ }
+
+ mp_attributes = mp_currentAttribute = mp_firstNonNsAttribute = NULL;
}
// --------------------------------------------------------------------------------