Nikolay Sivov : oleaut32: Properly free record name (Valgrind).

Alexandre Julliard julliard at winehq.org
Wed Apr 23 14:17:32 CDT 2014


Module: wine
Branch: master
Commit: 383686275aa57f0dbaf4b69046a58997715d6508
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=383686275aa57f0dbaf4b69046a58997715d6508

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Apr 23 11:21:53 2014 +0400

oleaut32: Properly free record name (Valgrind).

---

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

diff --git a/dlls/oleaut32/recinfo.c b/dlls/oleaut32/recinfo.c
index 02ba61f..d6da64a 100644
--- a/dlls/oleaut32/recinfo.c
+++ b/dlls/oleaut32/recinfo.c
@@ -180,7 +180,7 @@ static ULONG WINAPI IRecordInfoImpl_Release(IRecordInfo *iface)
         int i;
         for(i=0; i<This->n_vars; i++)
             SysFreeString(This->fields[i].name);
-        HeapFree(GetProcessHeap(), 0, This->name);
+        SysFreeString(This->name);
         HeapFree(GetProcessHeap(), 0, This->fields);
         ITypeInfo_Release(This->pTypeInfo);
         HeapFree(GetProcessHeap(), 0, This);




More information about the wine-cvs mailing list