Commit Diff


commit - 6d6b14e9865b826da892895d09519588459b67ad
commit + 80f4db877f17489d336a0a87b79e2fed2bf1567f
blob - 1c4cd78b65b4cbc3e25d26ec8ee9aa66ec424bcd
blob + e2326392e5c40d180f4f231973f5e38f672ac161
--- tog/tog.c
+++ tog/tog.c
@@ -5606,8 +5606,6 @@ open_diff_view(struct tog_view *view, struct got_objec
 	s->last_displayed_line = view->nlines;
 	s->selected_line = 1;
 	s->repo = repo;
-	s->id1 = id1;
-	s->id2 = id2;
 	s->label1 = label1;
 	s->label2 = label2;
 
@@ -6196,6 +6194,8 @@ done:
 	free(keyword_idstr2);
 	free(label1);
 	free(label2);
+	free(id1);
+	free(id2);
 	free(repo_path);
 	free(cwd);
 	if (repo) {