Module: wine Branch: master Commit: b8a087d6a8c3038fe9befc362f75e78f814cec67 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b8a087d6a8c3038fe9befc362f...
Author: Michael Stefaniuc mstefani@redhat.de Date: Thu Dec 3 00:41:55 2009 +0100
wininet: Free the mem unconditionally to prevent a potential leak (Smatch).
---
dlls/wininet/ftp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c index 48a7a95..bbef8ca 100644 --- a/dlls/wininet/ftp.c +++ b/dlls/wininet/ftp.c @@ -1397,8 +1397,8 @@ HINTERNET FTP_FtpOpenFileW(ftp_session_t *lpwfs, HeapFree(GetProcessHeap(), 0, lpwh->cache_file); lpwh->cache_file = NULL; } - HeapFree(GetProcessHeap(), 0, url); } + HeapFree(GetProcessHeap(), 0, url); } HeapFree(GetProcessHeap(), 0, uc.lpszUrlPath); }