Nikolay Sivov : msxml3: Fix XPath query result leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Mon Apr 28 13:27:00 CDT 2014


Module: wine
Branch: master
Commit: 98a9fbe79f72180f3095f8db4677e89946caa178
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=98a9fbe79f72180f3095f8db4677e89946caa178

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Apr 26 00:36:41 2014 +0400

msxml3: Fix XPath query result leak (Valgrind).

---

 dlls/msxml3/schema.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/msxml3/schema.c b/dlls/msxml3/schema.c
index 8776de8..a4aa083 100644
--- a/dlls/msxml3/schema.c
+++ b/dlls/msxml3/schema.c
@@ -1058,8 +1058,6 @@ HRESULT cache_from_doc_ns(IXMLDOMSchemaCollection2 *iface, xmlnode *node)
     {
         int pos = 0, len = xmlXPathNodeSetGetLength(nodeset->nodesetval);
 
-        if (len == 0) return S_OK;
-
         while (pos < len)
         {
             xmlNodePtr node = xmlXPathNodeSetItem(nodeset->nodesetval, pos);




More information about the wine-cvs mailing list