=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: d3dx9_36: Fix free of address-of expression (coverity).

Alexandre Julliard julliard at winehq.org
Thu Oct 25 13:50:44 CDT 2012


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Oct 24 20:53:00 2012 +0200

d3dx9_36: Fix free of address-of expression (coverity).

---

 dlls/d3dx9_36/mesh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c
index ded0848..3e8fc1f 100644
--- a/dlls/d3dx9_36/mesh.c
+++ b/dlls/d3dx9_36/mesh.c
@@ -3590,7 +3590,7 @@ static HRESULT filedata_get_name(IDirectXFileData *filedata, char **name)
 
     hr = IDirectXFileObject_GetName(filedata, *name, &name_len);
     if (FAILED(hr))
-        HeapFree(GetProcessHeap(), 0, name);
+        HeapFree(GetProcessHeap(), 0, *name);
     if (!name_len)
         (*name)[0] = 0;
 




More information about the wine-cvs mailing list