mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 11:33:34 +08:00
gj_common: git_repository_state_cleanup cannot be called with repo = 0
This commit is contained in:
@ -636,6 +636,7 @@ cleanup:
|
|||||||
git_commit_free(head_commit);
|
git_commit_free(head_commit);
|
||||||
git_commit_free(origin_head_commit);
|
git_commit_free(origin_head_commit);
|
||||||
git_signature_free(sig);
|
git_signature_free(sig);
|
||||||
|
if (repo != 0)
|
||||||
git_repository_state_cleanup(repo);
|
git_repository_state_cleanup(repo);
|
||||||
git_index_conflict_iterator_free(conflict_iter);
|
git_index_conflict_iterator_free(conflict_iter);
|
||||||
git_index_free(index);
|
git_index_free(index);
|
||||||
|
Reference in New Issue
Block a user