We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ed916 commit 24cb2bfCopy full SHA for 24cb2bf
1 file changed
generate/templates/manual/revwalk/file_history_walk.cc
@@ -352,10 +352,10 @@ void GitRevwalk::FileHistoryWalkWorker::Execute()
352
}
353
354
delete fileHistoryEvent;
355
+ git_commit_free(parentCommit);
356
+ git_tree_free(parentTree);
357
- if (firstMatchingParentIndex.first) {
- git_commit_free(parentCommit);
358
- git_tree_free(parentTree);
+ if (firstMatchingParentIndex.first) {
359
break;
360
361
@@ -414,6 +414,8 @@ void GitRevwalk::FileHistoryWalkWorker::Execute()
414
baton->out = NULL;
415
baton->error = git_error_dup(git_error_last());
416
417
+ free((void *)baton->file_path);
418
+ baton->file_path = NULL;
419
420
421
void GitRevwalk::FileHistoryWalkWorker::HandleOKCallback()
0 commit comments