From b5ce06c8b958cdc51761c31697189db81baf4423 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Mon, 22 Jan 2018 20:29:55 +0100 Subject: Free various struct membuffer in different functions Signed-off-by: Stefan Fuchs --- core/save-git.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/save-git.c') 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); } } -- cgit v1.2.3-70-g09d2