mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
atl: Fix memory leak on error path in do_process_root_key (scan-build).
This commit is contained in:
parent
5fe082172d
commit
cb4d61efa1
|
@ -383,7 +383,7 @@ static HRESULT do_process_root_key(LPCOLESTR data, BOOL do_register)
|
|||
strbuf_init(&buf);
|
||||
hres = get_word(&iter, &buf);
|
||||
if(FAILED(hres))
|
||||
return hres;
|
||||
goto done;
|
||||
|
||||
while(*iter) {
|
||||
if(!buf.len) {
|
||||
|
@ -417,6 +417,8 @@ static HRESULT do_process_root_key(LPCOLESTR data, BOOL do_register)
|
|||
if(FAILED(hres))
|
||||
break;
|
||||
}
|
||||
|
||||
done:
|
||||
free(buf.str);
|
||||
return hres;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue