Daniel Lehman : wininet: Free local proxyinfo in INTERNET_ConfigureProxy.
Module: wine Branch: master Commit: 2d89a140b2adf78dcec6db980265566121d9e791 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2d89a140b2adf78dcec6db9802... Author: Daniel Lehman <dlehman(a)esri.com> Date: Mon May 6 14:53:34 2013 -0700 wininet: Free local proxyinfo in INTERNET_ConfigureProxy. --- dlls/wininet/internet.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 12e4096..856eb73 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -663,7 +663,7 @@ static LONG INTERNET_LoadProxySettings( proxyinfo_t *lpwpi ) */ static BOOL INTERNET_ConfigureProxy( appinfo_t *lpwai ) { - proxyinfo_t wpi; + proxyinfo_t wpi = {0}; if (INTERNET_LoadProxySettings( &wpi )) return FALSE; @@ -705,6 +705,7 @@ static BOOL INTERNET_ConfigureProxy( appinfo_t *lpwai ) } TRACE("http proxy = %s bypass = %s\n", debugstr_w(lpwai->proxy), debugstr_w(lpwai->proxyBypass)); + FreeProxyInfo(&wpi); return TRUE; } else @@ -715,6 +716,7 @@ static BOOL INTERNET_ConfigureProxy( appinfo_t *lpwai ) } lpwai->accessType = INTERNET_OPEN_TYPE_DIRECT; + FreeProxyInfo(&wpi); return FALSE; }
participants (1)
-
Alexandre Julliard