Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
openwsman.459
0006-Memory-leak-in-wsman-libxml2-binding.c.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0006-Memory-leak-in-wsman-libxml2-binding.c.patch of Package openwsman.459
From 1efcdd4db28d5cc09655ab34002e32399151153a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de> Date: Wed, 25 Feb 2015 10:39:06 +0100 Subject: [PATCH 6/6] Memory leak in wsman-libxml2-binding.c This fixes issue #57 --- src/lib/wsman-libxml2-binding.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/wsman-libxml2-binding.c b/src/lib/wsman-libxml2-binding.c index 18c21a9f2597..2f7ab29bf41d 100644 --- a/src/lib/wsman-libxml2-binding.c +++ b/src/lib/wsman-libxml2-binding.c @@ -903,11 +903,9 @@ int xml_parser_check_xpath(WsXmlDocH doc, const char *expression) retval = 1; } - xmlXPathFreeContext(ctxt); xmlXPathFreeObject(obj); - } else { - return 0; } + xmlXPathFreeContext(ctxt); return retval; } @@ -946,11 +944,9 @@ char *xml_parser_get_xpath_value(WsXmlDocH doc, const char *expression) xmlChildrenNode, 1); - xmlXPathFreeContext(ctxt); xmlXPathFreeObject(obj); - } else { - return NULL; } + xmlXPathFreeContext(ctxt); return result; } -- 2.1.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor