[PATCH] Corrected double free
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Tue Mar 11 03:33:06 CDT 2008
---
dlls/msxml3/tests/domdoc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index 5d7fc0c..c4c5b9c 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -2,7 +2,7 @@
* XML test
*
* Copyright 2005 Mike McCormack for CodeWeavers
- * Copyright 2007 Alistair Leslie-Hughes
+ * Copyright 2007-2008 Alistair Leslie-Hughes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -528,6 +528,7 @@ static void test_domdoc( void )
ok( r == E_INVALIDARG, "returns %08x\n", r );
r = IXMLDOMDocument_createTextNode(doc, str, &nodetext);
ok( r == S_OK, "returns %08x\n", r );
+ SysFreeString( str );
if(nodetext)
{
IXMLDOMNamedNodeMap *pAttribs;
@@ -696,7 +697,6 @@ static void test_domdoc( void )
IXMLDOMText_Release( nodetext );
}
- SysFreeString( str );
/* test Create Comment */
r = IXMLDOMDocument_createComment(doc, NULL, NULL);
--
1.5.4.1
--------------020003070805020807090007--
More information about the wine-patches
mailing list