mshtml: create_channelbsc: Handle OOM case correctly.

This commit is contained in:
Joris Huizer 2010-03-04 12:39:18 +01:00 committed by Alexandre Julliard
parent a607f53779
commit b6f2919b90
1 changed files with 2 additions and 1 deletions

View File

@ -1136,7 +1136,8 @@ HRESULT create_channelbsc(IMoniker *mon, WCHAR *headers, BYTE *post_data, DWORD
if(post_data) {
ret->bsc.post_data = GlobalAlloc(0, post_data_size);
if(!ret->bsc.headers) {
if(!ret->bsc.post_data) {
heap_free(ret->bsc.headers);
IBindStatusCallback_Release(STATUSCLB(&ret->bsc));
return E_OUTOFMEMORY;
}