mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
Fix leak
This commit is contained in:
parent
b1d2927808
commit
f0f8e30d03
@ -194,6 +194,7 @@ final public class Repository {
|
||||
let name = String.fromCString(strarray.strings[Int($0)])!
|
||||
return self.remoteWithName(name)
|
||||
}
|
||||
git_strarray_free(pointer)
|
||||
pointer.dealloc(1)
|
||||
|
||||
let error = remotes.reduce(nil) { $0 == nil ? $0 : $1.error() }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user