diff options
Diffstat (limited to 'src/buildtool/file_system/git_repo.cpp')
-rw-r--r-- | src/buildtool/file_system/git_repo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/file_system/git_repo.cpp b/src/buildtool/file_system/git_repo.cpp index db4bbcbe..d22257f6 100644 --- a/src/buildtool/file_system/git_repo.cpp +++ b/src/buildtool/file_system/git_repo.cpp @@ -380,8 +380,8 @@ auto GitRepo::GuardedRepo::PtrRef() -> git_repository** { GitRepo::GuardedRepo::~GuardedRepo() noexcept { #ifndef BOOTSTRAP_BUILD_TOOL + std::unique_lock lock{*mutex_}; if (repo_ != nullptr) { - std::unique_lock lock{*mutex_}; git_repository_free(repo_); } #endif |