mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fixed git buffer not being freed in parsing loop.
This commit is contained in:
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user