[PATCH] wbemprox: free name in create_signature (Coverity)
Dmitry Timoshkov
dmitry at baikal.ru
Mon Feb 4 09:56:11 CST 2013
Marcus Meissner <marcus at jet.franken.de> wrote:
> 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;
> }
Attached version seems a bit simpler to me.
--
Dmitry.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wbemprox.diff
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130204/a4565959/attachment.ksh>
More information about the wine-patches
mailing list