From 93a1a36be2aaa8dfe70489bc0be81de2e098093c Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Wed, 27 Aug 2014 08:02:49 +0100 Subject: [PATCH] Fixed git buffer not being freed in parsing loop. --- src/backend/git.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/git.cpp b/src/backend/git.cpp index 3adc3c1b..6eb58881 100644 --- a/src/backend/git.cpp +++ b/src/backend/git.cpp @@ -412,10 +412,12 @@ namespace loot { BOOST_LOG_TRIVIAL(trace) << "Freeing pointers."; git_reference_free(git.ref); git_object_free(git.obj); + git_buf_free(&git.buf); git_commit_free(git.commit); git.ref = nullptr; git.obj = nullptr; git.commit = nullptr; + git.buf = { 0 }; //Now try parsing the masterlist. BOOST_LOG_TRIVIAL(debug) << "Testing masterlist parsing.";