mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
free parentGitCommits
This commit is contained in:
parent
4c7aa2a276
commit
f152ad76b7
@ -639,6 +639,11 @@ final public class Repository {
|
||||
|
||||
// libgit2 expects a C-like array of parent git_commit pointer
|
||||
var parentGitCommits: [OpaquePointer?] = []
|
||||
defer {
|
||||
for commit in parentGitCommits {
|
||||
git_commit_free(commit)
|
||||
}
|
||||
}
|
||||
for parentCommit in parents {
|
||||
var parent: OpaquePointer? = nil
|
||||
var oid = parentCommit.oid.oid
|
||||
|
||||
Loading…
Reference in New Issue
Block a user