[PATCH] wbemprox: free name in create_signature (Coverity)

Marcus Meissner marcus at jet.franken.de
Sun Feb 3 07:40:04 CST 2013


CID 971403
---
 dlls/wbemprox/class.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/wbemprox/class.c b/dlls/wbemprox/class.c
index a398c95..18dda7d 100644
--- a/dlls/wbemprox/class.c
+++ b/dlls/wbemprox/class.c
@@ -839,7 +839,9 @@ HRESULT create_signature( const WCHAR *class, const WCHAR *method, enum param_di
         heap_free( name );
         return hr;
     }
-    return get_object( name, sig );
+    hr = get_object( name, sig );
+    heap_free( name );
+    return hr;
 }
 
 static HRESULT WINAPI class_object_GetMethod(
-- 
1.7.10.4




More information about the wine-patches mailing list