From 08760936e427f8e012012e4a73107ecc3407a0f0 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 15 Dec 2009 15:17:22 +0000 Subject: [PATCH] oleaut32: Fix a leak in the tests. Found by Valgrind. --- dlls/oleaut32/tests/vartype.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c index 3ea6ac22ab2..8f192947635 100644 --- a/dlls/oleaut32/tests/vartype.c +++ b/dlls/oleaut32/tests/vartype.c @@ -5460,6 +5460,8 @@ static void test_BstrCopy(void) bstr = Get(V_BSTR(&vt2)); ok (bstr->dwLen == 3, "Expected 3, got %d\n", bstr->dwLen); ok (!lstrcmpA((LPCSTR)bstr->szString, szTestTruncA), "String different\n"); + VariantClear(&vt2); + VariantClear(&vt1); } }