put free calls back in to free the xml from messages
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 29 Aug 2006 19:02:48 +0000 (19:02 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 29 Aug 2006 19:02:48 +0000 (19:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5758 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/libtransport/transport_message.c

index 2cc33a2..a6e7514 100644 (file)
@@ -308,6 +308,8 @@ char* message_to_xml( const transport_message* msg ) {
        xmlNodeDump( xmlbuf, doc, xmlDocGetRootElement(doc), 0, 0);
        char* xml = strdup((char*) (xmlBufferContent(xmlbuf)));
        xmlBufferFree(xmlbuf);
+       xmlFreeDoc( doc );               
+       xmlCleanupParser();
        return xml;
 }