diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-03-14 15:58:16 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-03-14 15:58:16 +0100 |
commit | 838bdc8729429083f1f6e6efb4c5b80a166569d3 (patch) | |
tree | 47de0bebf2b49eb0e3543ebd1059d1e30582677d /src/buildtool/file_system/git_repo.cpp | |
parent | a596a80191b2c6c2e66ac4f131456a8a96e005b4 (diff) | |
download | justbuild-838bdc8729429083f1f6e6efb4c5b80a166569d3.tar.gz |
GitRepo: Fix memory leak in keep tag operation
Diffstat (limited to 'src/buildtool/file_system/git_repo.cpp')
-rw-r--r-- | src/buildtool/file_system/git_repo.cpp | 2 |
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)); } |