Fix: tests: leak of prefix on error to register lttng namespace
[lttng-tools.git] / tests / regression / tools / mi / extract_xml.c
index ddf8c16773331b9786b2018c4cbf2d7fb5a651e5..ae07689e239f4a44168d91b396f4a649fc68d134 100644 (file)
@@ -155,8 +155,8 @@ static int register_lttng_namespace(xmlXPathContextPtr xpathCtx)
        }
 
        ret = xmlXPathRegisterNs(xpathCtx, prefix, ns);
-       xmlFree(prefix);
 end:
+       xmlFree(prefix);
        xmlFree(ns);
        return ret;
 }
This page took 0.023658 seconds and 5 git commands to generate.