summaryrefslogtreecommitdiffstats
path: root/core/save-git.c
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2018-01-22 20:29:55 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-02-02 11:29:55 -0800
commitb5ce06c8b958cdc51761c31697189db81baf4423 (patch)
treea4b6550674a4f189b847c76a50f287fbb31cd1b8 /core/save-git.c
parentd6c8edc2dbf04592ecf2ba00c743038babfa6f6b (diff)
downloadsubsurface-b5ce06c8b958cdc51761c31697189db81baf4423.tar.gz
Free various struct membuffer in different functions
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
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);
}
}