put free calls back in to free the xml from messages
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 29 Aug 2006 19:02:48 +0000 (19:02 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 29 Aug 2006 19:02:48 +0000 (19:02 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@770 9efc2488-bf62-4759-914b-345cdb29e865

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;
 }