Rémi Bernon : devenum: Use free for memory allocated with wcsdup.

Alexandre Julliard julliard at winehq.org
Wed Apr 29 16:11:13 CDT 2020


Module: wine
Branch: master
Commit: 01dd935d1ec10570c9159632e1c60fcfb3029248
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=01dd935d1ec10570c9159632e1c60fcfb3029248

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Wed Apr 29 17:01:21 2020 +0200

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 at codeweavers.com>
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/devenum/mediacatenum.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/devenum/mediacatenum.c b/dlls/devenum/mediacatenum.c
index c0006ad53e..9176d8470d 100644
--- a/dlls/devenum/mediacatenum.c
+++ b/dlls/devenum/mediacatenum.c
@@ -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();
     }




More information about the wine-cvs mailing list