MCPcopy Create free account
hub / github.com/libgit2/git2go / freeStrarray

Function freeStrarray

remote.go:909–920  ·  view source on GitHub ↗
(arr *C.git_strarray)

Source from the content-addressed store, hash-verified

907}
908
909func freeStrarray(arr *C.git_strarray) {
910 count := int(arr.count)
911 size := unsafe.Sizeof(unsafe.Pointer(nil))
912
913 i := 0
914 for p := uintptr(unsafe.Pointer(arr.strings)); i < count; p += size {
915 C.free(unsafe.Pointer(sptr(p)))
916 i++
917 }
918
919 C.free(unsafe.Pointer(arr.strings))
920}
921
922func (o *Remote) FetchRefspecs() ([]string, error) {
923 crefspecs := C.git_strarray{}

Callers 13

AddAllMethod · 0.85
UpdateAllMethod · 0.85
RemoveAllMethod · 0.85
StatusListMethod · 0.85
freeDiffOptionsFunction · 0.85
ResetDefaultToCommitMethod · 0.85
freeCheckoutOptionsFunction · 0.85
RenameMethod · 0.85
freeFetchOptionsFunction · 0.85
freePushOptionsFunction · 0.85
FetchMethod · 0.85
ConnectMethod · 0.85

Calls 2

sptrFunction · 0.85
freeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…