=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: d3drm: Fix a leak (coverity).

Alexandre Julliard julliard at winehq.org
Mon Dec 24 14:02:58 CST 2012


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Sat Dec 22 23:29:39 2012 +0100

d3drm: Fix a leak (coverity).

---

 dlls/d3drm/meshbuilder.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/d3drm/meshbuilder.c b/dlls/d3drm/meshbuilder.c
index bf9a162..4fc8462 100644
--- a/dlls/d3drm/meshbuilder.c
+++ b/dlls/d3drm/meshbuilder.c
@@ -2143,6 +2143,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_CreateMesh(IDirect3DRMMeshBuil
             face_data = HeapAlloc(GetProcessHeap(), 0, This->face_data_size * sizeof(*face_data));
             if (!face_data)
             {
+                HeapFree(GetProcessHeap(), 0, used_vertices);
                 IDirect3DRMMesh_Release(*mesh);
                 return E_OUTOFMEMORY;
             }




More information about the wine-cvs mailing list