Commit 01dd935d authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

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: 's avatarRémi Bernon <rbernon@codeweavers.com> Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 252a5382
......@@ -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();
}
......
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