commit 78368643b1a7e297cd29cca32debb6514d206df1 from: Stefan Sperling date: Fri Jul 29 10:52:30 2022 UTC remove pointless repo_close with leaked error; found by florian with scan-build commit - 279d204752d9f8c22b1a45fa30e4aa8e45f43fb9 commit + 78368643b1a7e297cd29cca32debb6514d206df1 blob - 2ef7d62757611aaffaf795dac6d7b8b26de7d804 blob + 58990f76b31337bb2ba1c56ebcce5b3b13a3cb78 --- tog/tog.c +++ tog/tog.c @@ -8130,11 +8130,6 @@ tog_log_with_path(int argc, char *argv[]) /* not reached */ } - close_err = got_repo_close(repo); - if (error == NULL) - error = close_err; - repo = NULL; - error = got_object_id_str(&commit_id_str, commit_id); if (error) goto done;