diff options
Diffstat (limited to 'src')
-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 2d4110a1..98dcb1fd 100644 --- a/src/buildtool/file_system/git_repo.cpp +++ b/src/buildtool/file_system/git_repo.cpp @@ -387,8 +387,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 |