=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: fusion: Reorder some code to avoid memory leak (coverity).

Alexandre Julliard julliard at winehq.org
Mon Oct 29 13:52:50 CDT 2012


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sun Oct 28 16:16:35 2012 +0100

fusion: Reorder some code to avoid memory leak (coverity).

---

 dlls/fusion/fusion.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/fusion/fusion.c b/dlls/fusion/fusion.c
index 6ace81f..e79fa3a 100644
--- a/dlls/fusion/fusion.c
+++ b/dlls/fusion/fusion.c
@@ -76,9 +76,9 @@ static HRESULT get_corversion(LPWSTR version, DWORD size)
 
     pGetCORVersion = (void *)GetProcAddress(hmscoree, "GetCORVersion");
     if (!pGetCORVersion)
-        return E_FAIL;
-
-    hr = pGetCORVersion(version, size, &len);
+        hr = E_FAIL;
+    else
+        hr = pGetCORVersion(version, size, &len);
 
     FreeLibrary(hmscoree);
     return hr;




More information about the wine-cvs mailing list