Skip to content

Commit

Permalink
fix use-after-free in getReferences
Browse files Browse the repository at this point in the history
we didn't create the repo so we can't be the ones to free it
  • Loading branch information
zawata committed Apr 12, 2024
1 parent 80b12ac commit e132dca
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion generate/templates/manual/repository/get_references.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ void GitRepository::GetReferencesWorker::Execute()
}

git_strarray_free(&reference_names);
git_repository_free(repo);
delete baton->out;
baton->out = NULL;
return;
Expand Down

0 comments on commit e132dca

Please sign in to comment.