[PATCH] wsdapi/tests: Fix a memory leak (Valgrind).

Sven Baars sven.wine at gmail.com
Sun Dec 23 09:47:02 CST 2018


Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
 dlls/wsdapi/tests/xml.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wsdapi/tests/xml.c b/dlls/wsdapi/tests/xml.c
index 633124f1b1..ab86d23166 100644
--- a/dlls/wsdapi/tests/xml.c
+++ b/dlls/wsdapi/tests/xml.c
@@ -604,6 +604,7 @@ static void XMLContext_AddNameToNamespace_tests(void)
         /* Apparently wsdapi always leaves the namespace names array as empty */
         ok(ns2->Names == NULL, "Names array is not empty\n");
         ok(ns2->NamesCount == 0, "NamesCount is not 0 (value = %d)\n", ns2->NamesCount);
+        WSDFreeLinkedMemory(ns2);
     }
 
     IWSDXMLContext_Release(context);
-- 
2.17.1




More information about the wine-devel mailing list