Fixed broken -wR option, and various memory leaks. There's also
a memory leak in search_loclist_at() (-wo option) which I haven't
been able to fix.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
For context, Christos is working on a libdwarf program which enumerates inline function call locations. The eventual goal is to embed that functionality into libdtrace, so that we can use the kinst provider to probe inline function calls and returns.
contrib/elftoolchain/readelf/readelf.c | ||
---|---|---|
5197 | Are we still leaking the DIE in these error cases? |
contrib/elftoolchain/readelf/readelf.c | ||
---|---|---|
5197 |
No, as far as I know, deallocating the srcfiles with DW_DLA_STRING is a NOP in FreeBSD's implementation. Libdwarf takes care of this. |
contrib/elftoolchain/readelf/readelf.c | ||
---|---|---|
5197 | Scratch that, I thought you meant something else. |
contrib/elftoolchain/readelf/readelf.c | ||
---|---|---|
5201 | You're right. The dwarf_dealloc() should apply only to the outer loop's continues. |