wininet: Fix a memory leak.

This commit is contained in:
Hans Leidekker 2008-07-19 19:52:47 +02:00 committed by Alexandre Julliard
parent da5e4f16d8
commit e3e2622e41
1 changed files with 3 additions and 0 deletions

View File

@ -3833,8 +3833,11 @@ lend:
if (bSuccess) if (bSuccess)
return rc; return rc;
else else
{
HeapFree(GetProcessHeap(), 0, lpszRawHeaders);
return 0; return 0;
} }
}
static void strip_spaces(LPWSTR start) static void strip_spaces(LPWSTR start)