commit e6b23735504306b985eac9a322f12aba3f159861 from: Stefan Sperling date: Fri Oct 04 13:01:59 2019 UTC update reference list when 'tog log' view is refreshed with Ctrl+L commit - bd8de4305a32b69e3b4d44c9785663889a5d9eff commit + e6b23735504306b985eac9a322f12aba3f159861 blob - 6752a4435be9e961ae88c997e52c023d8c82d1e5 blob + 972a1f35a62becd7a97501af5101c4be2f718469 --- tog/tog.c +++ tog/tog.c @@ -2138,6 +2138,14 @@ input_log_view(struct tog_view **new_view, struct tog_ } in_repo_path = strdup(s->in_repo_path); if (in_repo_path == NULL) { + free(start_id); + view_close(lv); + return got_error_from_errno("strdup"); + } + got_ref_list_free(s->refs); + err = got_ref_list(s->refs, s->repo, NULL, + got_ref_cmp_by_name, NULL); + if (err) { free(start_id); view_close(lv); return got_error_from_errno("strdup");