[libxslt] Fix memory leak in xsltElementAvailableFunction
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Fix memory leak in xsltElementAvailableFunction
- Date: Tue, 3 Jan 2017 16:10:11 +0000 (UTC)
commit 0620aeefe9c9abac2bc864b20d4a597588589255
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Tue Jan 3 15:51:55 2017 +0100
Fix memory leak in xsltElementAvailableFunction
libxslt/functions.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libxslt/functions.c b/libxslt/functions.c
index 5e99e92..ec22203 100644
--- a/libxslt/functions.c
+++ b/libxslt/functions.c
@@ -850,7 +850,7 @@ xsltElementAvailableFunction(xmlXPathParserContextPtr ctxt, int nargs){
name = xmlStrdup(obj->stringval);
ns = xmlSearchNs(tctxt->inst->doc, tctxt->inst, NULL);
- if (ns != NULL) nsURI = xmlStrdup(ns->href);
+ if (ns != NULL) nsURI = ns->href;
} else {
nsURI = xmlXPathNsLookup(ctxt->context, prefix);
if (nsURI == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]