Commit da84d773 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wininet: Fix memory leak when loading proxy information.

parent 29f73d66
...@@ -710,6 +710,7 @@ static LONG load_connection_settings( HKEY key, const WCHAR *connection, proxyin ...@@ -710,6 +710,7 @@ static LONG load_connection_settings( HKEY key, const WCHAR *connection, proxyin
res = connection_settings_read( settings, &pos, size, &lpwpi->proxyBypass ); res = connection_settings_read( settings, &pos, size, &lpwpi->proxyBypass );
if (!res) if (!res)
res = connection_settings_read( settings, &pos, size, &lpwpi->autoconf_url ); res = connection_settings_read( settings, &pos, size, &lpwpi->autoconf_url );
free( settings );
if (res) if (res)
{ {
FreeProxyInfo( lpwpi ); FreeProxyInfo( lpwpi );
......
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