Dmitry Timoshkov : wbemprox: Free name in create_signature (Coverity).
Alexandre Julliard
julliard at winehq.org
Tue Feb 5 13:25:25 CST 2013
Module: wine
Branch: master
Commit: 1eee6e3159c616ef6e57fd9d851e801804a859dd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1eee6e3159c616ef6e57fd9d851e801804a859dd
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon Feb 4 23:56:11 2013 +0800
wbemprox: Free name in create_signature (Coverity).
---
dlls/wbemprox/class.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/dlls/wbemprox/class.c b/dlls/wbemprox/class.c
index a398c95..62cf332 100644
--- a/dlls/wbemprox/class.c
+++ b/dlls/wbemprox/class.c
@@ -834,12 +834,11 @@ HRESULT create_signature( const WCHAR *class, const WCHAR *method, enum param_di
}
hr = create_signature_table( iter, name );
IEnumWbemClassObject_Release( iter );
- if (hr != S_OK)
- {
- heap_free( name );
- return hr;
- }
- return get_object( name, sig );
+ if (hr == S_OK)
+ hr = get_object( name, sig );
+
+ heap_free( name );
+ return hr;
}
static HRESULT WINAPI class_object_GetMethod(
More information about the wine-cvs
mailing list