devenum: Use free for memory allocated with wcsdup.

The memory is otherwise released to the process heap, although msvcrt
allocated it from its internal heap.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2020-04-29 17:01:21 +02:00 committed by Alexandre Julliard
parent 252a53825a
commit 01dd935d1e

View file

@ -323,7 +323,7 @@ static ULONG WINAPI moniker_Release(IMoniker *iface)
TRACE("(%p) ref=%d\n", This, ref);
if (ref == 0) {
CoTaskMemFree(This->name);
free(This->name);
free(This);
DEVENUM_UnlockModule();
}