From b8a087d6a8c3038fe9befc362f75e78f814cec67 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Thu, 3 Dec 2009 00:41:55 +0100 Subject: [PATCH] wininet: Free the mem unconditionally to prevent a potential leak (Smatch). --- dlls/wininet/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c index 48a7a95fc5..bbef8cad67 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); }