Fix leak in sru_z3950 filter - when explain is returned MP-511
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 3 Feb 2014 12:39:26 +0000 (13:39 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 3 Feb 2014 12:39:26 +0000 (13:39 +0100)
src/sru_util.cpp

index 5ce98f7..c02007b 100644 (file)
@@ -131,6 +131,7 @@ bool mp_util::build_sru_explain(metaproxy_1::Package &package,
         xmlDocDumpFormatMemory(doc, &xmlbuff, &xmlbuffsz, 1);
 
         explain_xml.assign((const char*)xmlbuff, 0, xmlbuffsz);
+        xmlFree(xmlbuff);
     }