Commit 33308a57 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

dbghelp: Fix possible memory leak (Coverity).

parent ac1628c9
......@@ -2314,7 +2314,10 @@ static struct symt* dwarf2_parse_subprogram(dwarf2_debug_info_t* di)
* Actual thunks will be created in elf_module from the symbol table
*/
if (elf_is_in_thunk_area(di->unit_ctx->module_ctx->load_offset + addr_ranges[0].low, di->unit_ctx->module_ctx->thunks) >= 0)
{
free(addr_ranges);
return NULL;
}
ret_type = dwarf2_lookup_type(di);
/* FIXME: assuming C source code */
......
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