From 09d9b36e4529a5cf42066f4a1e5b3ce635e04f34 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 3 Feb 2014 13:39:26 +0100 Subject: [PATCH] Fix leak in sru_z3950 filter - when explain is returned MP-511 --- src/sru_util.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sru_util.cpp b/src/sru_util.cpp index 5ce98f7..c02007b 100644 --- a/src/sru_util.cpp +++ b/src/sru_util.cpp @@ -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); } -- 1.7.10.4