aboutsummaryrefslogtreecommitdiffstats
path: root/core/save-git.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/save-git.c')
-rw-r--r--core/save-git.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/save-git.c b/core/save-git.c
index d09513e1d..a00aeed94 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -903,6 +903,7 @@ static void save_divesites(git_repository *repo, struct dir *tree)
struct membuffer dirname = { 0 };
put_format(&dirname, "01-Divesites");
subdir = new_directory(repo, tree, &dirname);
+ free_buffer(&dirname);
for (int i = 0; i < dive_site_table.nr; i++) {
struct membuffer b = { 0 };
@@ -946,6 +947,7 @@ static void save_divesites(git_repository *repo, struct dir *tree)
}
}
blob_insert(repo, subdir, &b, mb_cstring(&site_file_name));
+ free_buffer(&site_file_name);
}
}