summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/file_system/git_utils.cpp')
-rw-r--r--src/buildtool/file_system/git_utils.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buildtool/file_system/git_utils.cpp b/src/buildtool/file_system/git_utils.cpp
index 9fccbd9d..a38fae39 100644
--- a/src/buildtool/file_system/git_utils.cpp
+++ b/src/buildtool/file_system/git_utils.cpp
@@ -148,3 +148,9 @@ void tree_entry_closer(gsl::owner<git_tree_entry*> tree_entry) {
git_tree_entry_free(tree_entry);
#endif
}
+
+void config_closer(gsl::owner<git_config*> cfg) {
+#ifndef BOOTSTRAP_BUILD_TOOL
+ git_config_free(cfg);
+#endif
+}