summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/file_system/git_repo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buildtool/file_system/git_repo.cpp b/src/buildtool/file_system/git_repo.cpp
index 5a285499..df8c6fad 100644
--- a/src/buildtool/file_system/git_repo.cpp
+++ b/src/buildtool/file_system/git_repo.cpp
@@ -598,6 +598,8 @@ auto GitRepo::KeepTag(std::string const& commit,
git_strarray_dispose(&tag_names);
return true; // success!
}
+ git_strarray_dispose(
+ &tag_names); // free any allocated unused space
// tag still not in, so sleep and try again
std::this_thread::sleep_for(std::chrono::milliseconds(kWaitTime));
}