Re: [PATCH 2/3] ole32: Fix memory leak in CompositeMonikerImpl_Construct.
12 Apr
2016
12 Apr
'16
4:21 a.m.
Alex Henrie <alexhenrie24(a)gmail.com> writes:
@@ -1848,8 +1848,10 @@ CompositeMonikerImpl_Construct(IMoniker **ppMoniker, IMoniker *pmkFirst, IMonike IMoniker_Release(This->tabMoniker[This->tabLastIndex-1]);
This->tabMoniker[This->tabLastIndex-1]=tempMk; - } else + } else{ + HeapFree(GetProcessHeap(), 0, This); return res; + }
You'd need to free the contents too, at least This->tabMoniker and its references. -- Alexandre Julliard julliard(a)winehq.org
3533
Age (days ago)
3533
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard