diff options
| author | Matthew Donoughe <[email protected]> | 2015-02-13 20:44:29 -0500 |
|---|---|---|
| committer | Matthew Donoughe <[email protected]> | 2015-02-13 20:44:29 -0500 |
| commit | 51e7cf0ad4888998e5bb40161bc1516c778cf547 (patch) | |
| tree | 06139e59a56deb34a675c91d82676b9cee895035 /remote.go | |
| parent | e8da5affe7ada724b71c6603c81d534752d4be6b (diff) | |
use git_signature_free
Diffstat (limited to 'remote.go')
| -rw-r--r-- | remote.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -605,7 +605,7 @@ func (o *Remote) Fetch(refspecs []string, sig *Signature, msg string) error { var csig *C.git_signature = nil if sig != nil { csig = sig.toC() - defer C.free(unsafe.Pointer(csig)) + defer C.git_signature_free(csig) } var cmsg *C.char = nil @@ -697,7 +697,7 @@ func (o *Remote) Push(refspecs []string, opts *PushOptions, sig *Signature, msg var csig *C.git_signature = nil if sig != nil { csig = sig.toC() - defer C.free(unsafe.Pointer(csig)) + defer C.git_signature_free(csig) } var cmsg *C.char |
