Commit 941d74a2 authored by Andrey Gusev's avatar Andrey Gusev Committed by Alexandre Julliard

winmm/tests: Fix memory leak.

parent 0e9cb103
......@@ -977,7 +977,10 @@ static void wave_out_test_device(UINT_PTR device)
"waveOutGetDevCapsA(%s): MMSYSERR_NOERROR expected, got %s\n",
dev_name(device),wave_out_error(rc));
if (rc!=MMSYSERR_NOERROR)
{
HeapFree(GetProcessHeap(), 0, nameA);
return;
}
trace(" %s: \"%s\" (%s) %d.%d (%d:%d)\n",dev_name(device),capsA.szPname,
(nameA?nameA:"failed"),capsA.vDriverVersion >> 8,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment