[PATCH] wbemprox: free server on exit (Coverity)

Marcus Meissner marcus at jet.franken.de
Thu May 9 03:30:44 CDT 2013


CID  731824 Resource leak
---
 dlls/wbemprox/wbemlocator.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wbemprox/wbemlocator.c b/dlls/wbemprox/wbemlocator.c
index 0034983..e869a6a 100644
--- a/dlls/wbemprox/wbemlocator.c
+++ b/dlls/wbemprox/wbemlocator.c
@@ -193,6 +193,7 @@ static HRESULT WINAPI wbem_locator_ConnectServer(
 
     hr = WbemServices_create( NULL, namespace, (void **)ppNamespace );
     heap_free( namespace );
+    heap_free( server );
     if (SUCCEEDED( hr ))
         return WBEM_NO_ERROR;
 
-- 
1.7.10.4




More information about the wine-patches mailing list