commit - 564a8b0186283eb09c998068c2431c5428aca9f3
commit + ddcb4a8e2f7e106c22a6ca6ece0671a650ca627c
blob - 39c015014934e14ccc6174441441dd1153ae29f1
blob + 8110a126b6938540cfb09ea2d3ba8e7796fa9234
--- gotwebd/got_operations.c
+++ gotwebd/got_operations.c
error = got_error_from_errno("strdup");
goto done;
}
- if (commit) {
- got_object_commit_close(commit);
- commit = NULL;
- }
+ got_object_commit_close(commit);
+ commit = NULL;
TAILQ_REMOVE(&t->repo_commits, repo_commit,
entry);
gotweb_free_repo_commit(repo_commit);