Module: wine Branch: master Commit: 998d9d9a8f419dff40d5ca49ee3c03aa495a1382 URL: http://source.winehq.org/git/wine.git/?a=commit;h=998d9d9a8f419dff40d5ca49ee...
Author: Huw Davies huw@codeweavers.com Date: Sat Dec 12 12:18:37 2009 +0000
fusion: Fix a memory leak in the tests.
Found by Valgrind.
---
dlls/fusion/tests/asmname.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/fusion/tests/asmname.c b/dlls/fusion/tests/asmname.c index 864ded5..824837b 100644 --- a/dlls/fusion/tests/asmname.c +++ b/dlls/fusion/tests/asmname.c @@ -787,6 +787,7 @@ static void test_CreateAssemblyNameObject(void) "Expected FUSION_E_INVALID_NAME, got %08x\n", hr); ok(name == (IAssemblyName *)0xdeadbeef, "Expected 0xdeadbeef, got %p\n", name); } + if(SUCCEEDED(hr)) IAssemblyName_Release(name);
/* no '=' */ to_widechar(namestr, "wine, PublicKeyToken");