Commit b81b3d1a authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Fix a memory leak in run_script.

parent 654b0eea
...@@ -1671,13 +1671,13 @@ static BOOL run_script( const BSTR script, const WCHAR *url, WINHTTP_PROXY_INFO ...@@ -1671,13 +1671,13 @@ static BOOL run_script( const BSTR script, const WCHAR *url, WINHTTP_PROXY_INFO
params.cNamedArgs = 0; params.cNamedArgs = 0;
hr = IDispatch_Invoke( dispatch, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_METHOD, hr = IDispatch_Invoke( dispatch, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_METHOD,
&params, &result, NULL, NULL ); &params, &result, NULL, NULL );
VariantClear( &args[0] );
VariantClear( &args[1] ); VariantClear( &args[1] );
if (hr != S_OK) goto done; if (hr != S_OK) goto done;
ret = parse_script_result( result, info ); ret = parse_script_result( result, info );
done: done:
SysFreeString( hostname );
SysFreeString( func ); SysFreeString( func );
if (dispatch) IDispatch_Release( dispatch ); if (dispatch) IDispatch_Release( dispatch );
if (parser) IUnknown_Release( parser ); if (parser) IUnknown_Release( parser );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment