Clone Fix

freeCheckoutOpts called twice
This commit is contained in:
Mirko Nosenzo 2016-07-24 14:20:12 +02:00
parent 6fa4c8ea15
commit aa7dfab1cf
No known key found for this signature in database
GPG Key ID: E6EBC1DB672BD11E
1 changed files with 0 additions and 1 deletions

View File

@ -41,7 +41,6 @@ func Clone(url string, path string, options *CloneOptions) (*Repository, error)
var ptr *C.git_repository
ret := C.git_clone(&ptr, curl, cpath, copts)
freeCheckoutOpts(&copts.checkout_opts)
if ret < 0 {
return nil, MakeGitError(ret)