msi: Free the enumeration data returned by IEnumSTATSTG_Next.

This commit is contained in:
James Hawkins 2009-12-13 19:36:35 -08:00 committed by Alexandre Julliard
parent 7abb42a994
commit 8fe8a100c8

View File

@ -5540,6 +5540,8 @@ static void enum_stream_names(IStorage *stg)
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
ok(stm != NULL, "Expected non-NULL stream\n");
CoTaskMemFree(stat.pwcsName);
sz = MAX_PATH;
memset(data, 'a', MAX_PATH);
hr = IStream_Read(stm, data, sz, &count);