Fix leak, bug 624
authorScott Cantor <cantor.2@osu.edu>
Mon, 29 Jan 2007 15:35:32 +0000 (15:35 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 29 Jan 2007 15:35:32 +0000 (15:35 +0000)
xmltooling/io/AbstractXMLObjectMarshaller.cpp

index 3cc8f3f..0b41fbf 100644 (file)
@@ -242,6 +242,7 @@ public:
             XMLString::catString(xmlns,colon);
             XMLString::catString(xmlns,prefix);
             domElement->setAttributeNS(XMLNS_NS, xmlns, uri);
+            XMLString::release(&xmlns);
         }
         else {
             domElement->setAttributeNS(XMLNS_NS, XMLNS_PREFIX, uri);