Description
in axiom_element_add_attribute, the attribute is added to the hash of attributes in om_element->attributes
based on the name (axutil_qname_to_string).
If an attribute with the same name is already in the hash, that entry is overwritten and thus, will never be freed.
This seems to be the case always if several xml nodes have the same namespace - the attribute value itself is not used there, or are
we just talking namespace attributes here?
I don't even begin to understand what the role of the attributes is, and what happes, if the attributes are stored with different names or such.
For the moment, I will try to create two hashes, one for the attributes that are used, and one for the attributes that just have to be freed. Of course, a list would be enough for the latter.
Attachments
Attachments
Issue Links
- is related to
-
AXIS2C-1664 Memory leak when replacing value of item in hash table
- Open
-
AXIS2C-1701 Memory leak on duplicate XML namespace declaration
- Open