|
@@ -1084,7 +1084,7 @@ int symbol__tui_annotate(struct symbol *sym, struct map *map,
|
|
struct perf_evsel *evsel,
|
|
struct perf_evsel *evsel,
|
|
struct hist_browser_timer *hbt)
|
|
struct hist_browser_timer *hbt)
|
|
{
|
|
{
|
|
- struct disasm_line *pos, *n;
|
|
|
|
|
|
+ struct disasm_line *pos;
|
|
struct annotation *notes;
|
|
struct annotation *notes;
|
|
size_t size;
|
|
size_t size;
|
|
struct map_symbol ms = {
|
|
struct map_symbol ms = {
|
|
@@ -1180,10 +1180,8 @@ int symbol__tui_annotate(struct symbol *sym, struct map *map,
|
|
annotate_browser__update_addr_width(&browser);
|
|
annotate_browser__update_addr_width(&browser);
|
|
|
|
|
|
ret = annotate_browser__run(&browser, evsel, hbt);
|
|
ret = annotate_browser__run(&browser, evsel, hbt);
|
|
- list_for_each_entry_safe(pos, n, ¬es->src->source, al.node) {
|
|
|
|
- list_del(&pos->al.node);
|
|
|
|
- disasm_line__free(pos);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ annotated_source__purge(notes->src);
|
|
|
|
|
|
out_free_offsets:
|
|
out_free_offsets:
|
|
free(browser.offsets);
|
|
free(browser.offsets);
|