Commit cb4d61ef authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

atl: Fix memory leak on error path in do_process_root_key (scan-build).

parent 5fe08217
...@@ -383,7 +383,7 @@ static HRESULT do_process_root_key(LPCOLESTR data, BOOL do_register) ...@@ -383,7 +383,7 @@ static HRESULT do_process_root_key(LPCOLESTR data, BOOL do_register)
strbuf_init(&buf); strbuf_init(&buf);
hres = get_word(&iter, &buf); hres = get_word(&iter, &buf);
if(FAILED(hres)) if(FAILED(hres))
return hres; goto done;
while(*iter) { while(*iter) {
if(!buf.len) { if(!buf.len) {
...@@ -417,6 +417,8 @@ static HRESULT do_process_root_key(LPCOLESTR data, BOOL do_register) ...@@ -417,6 +417,8 @@ static HRESULT do_process_root_key(LPCOLESTR data, BOOL do_register)
if(FAILED(hres)) if(FAILED(hres))
break; break;
} }
done:
free(buf.str); free(buf.str);
return hres; return hres;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment