wininet: Avoid memory leak in error exit (Coverity).

This commit is contained in:
Marcus Meissner 2015-04-09 18:59:57 +02:00 committed by Alexandre Julliard
parent c6b4b4b93e
commit c1c06a9093
1 changed files with 3 additions and 1 deletions

View File

@ -341,8 +341,10 @@ static BOOL load_persistent_cookie(LPCWSTR domain, LPCWSTR path)
UnlockUrlCacheEntryStream(cookie, 0);
cookie_container = get_cookie_container(domain, path, TRUE);
if(!cookie_container)
if(!cookie_container) {
heap_free(str);
return FALSE;
}
GetSystemTimeAsFileTime(&time);
for(pbeg=str; pbeg && *pbeg; name=data=NULL) {