Commit Diff


commit - 4f1a8200c610fa751d18ba5026ad429a0ca35a06
commit + 520426b0547120abac809e7dd56d94e088d56a60
blob - a7e30241ef99eaa816bb8180b62d9490702689dd
blob + 730c01033cb9dd22d48a5b1b81dc45cbd32e399e
--- tog/tog.c
+++ tog/tog.c
@@ -435,8 +435,10 @@ show_log_view(struct got_object_id *start_id, struct g
 				}
 				got_object_close(obj);
 				err = got_object_open(&obj, repo, id);
-				if (err)
-					return err;
+				if (err) {
+					obj = NULL;
+					goto done;
+				}
 				if (got_object_get_type(obj) !=
 				    GOT_OBJ_TYPE_COMMIT) {
 					err = got_error(GOT_ERR_OBJ_TYPE);