}
offset = (off_t) elf->ehdr->e_shoff
- + (off_t) index * elf->ehdr->e_shentsize;
+ + (off_t) index * elf->ehdr->e_shentsize;
if (lseek(elf->fd, offset, SEEK_SET) < 0) {
goto error;
}
*found = _found;
return 0;
error:
+ free(_build_id);
return -1;
}
*found = _found;
return 0;
error:
+ free(_build_id);
return -1;
}
return 0;
error:
- if (section_name) {
- free(section_name);
- }
-
+ free(_filename);
+ free(section_name);
return -1;
}
*found = _found;
return 0;
error:
+ free(_filename);
return -1;
}