mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
b7d01b0d1b
commit
d795f494a8
Notes:
git
2021-06-29 06:07:03 +09:00
1 changed files with 2 additions and 0 deletions
|
@ -1699,6 +1699,7 @@ debug_info_read(DebugInfoReader *reader, int num_traces, void **traces,
|
|||
static unsigned long
|
||||
uncompress_debug_section(ElfW(Shdr) *shdr, char *file, char **ptr)
|
||||
{
|
||||
*ptr = NULL;
|
||||
#ifdef SUPPORT_COMPRESSED_DEBUG_LINE
|
||||
ElfW(Chdr) *chdr = (ElfW(Chdr) *)(file + shdr->sh_offset);
|
||||
unsigned long destsize = chdr->ch_size;
|
||||
|
@ -1719,6 +1720,7 @@ uncompress_debug_section(ElfW(Shdr) *shdr, char *file, char **ptr)
|
|||
|
||||
fail:
|
||||
free(*ptr);
|
||||
*ptr = NULL;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue