Nikolay Sivov : msacm32/tests: Fix a memory leak in tests (Valgrind).
Alexandre Julliard
julliard at winehq.org
Mon Jul 17 15:37:19 CDT 2017
Module: wine
Branch: master
Commit: f03b8a42f97f87bfaac1e30a37e6e18b9bd48c81
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f03b8a42f97f87bfaac1e30a37e6e18b9bd48c81
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Jul 14 08:23:37 2017 +0300
msacm32/tests: Fix a memory leak in tests (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msacm32/tests/msacm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/msacm32/tests/msacm.c b/dlls/msacm32/tests/msacm.c
index 337e20c..959ec7f 100644
--- a/dlls/msacm32/tests/msacm.c
+++ b/dlls/msacm32/tests/msacm.c
@@ -1272,6 +1272,8 @@ static void test_acmFormatChoose(void)
rc = acmFormatChooseW(&afc);
ok(rc == MMSYSERR_INVALPARAM, "expected 0xb, got 0x%x\n", rc);
afc.pwfx = pwfx;
+
+ HeapFree(GetProcessHeap(), 0, pwfx);
}
static struct
More information about the wine-cvs
mailing list