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

Function smartSubtransportFreeCallback

transport.go:419–430  ·  view source on GitHub ↗

export smartSubtransportFreeCallback

(t *C.git_smart_subtransport)

Source from the content-addressed store, hash-verified

417
418//export smartSubtransportFreeCallback
419func smartSubtransportFreeCallback(t *C.git_smart_subtransport) {
420 subtransport := getSmartSubtransportInterface(t)
421
422 if subtransport.underlying != nil {
423 subtransport.underlying.Free()
424 subtransport.underlying = nil
425 }
426 pointerHandles.Untrack(subtransport.handle)
427 C.free(unsafe.Pointer(subtransport.subtransport))
428 subtransport.handle = nil
429 subtransport.subtransport = nil
430}
431
432type managedSmartSubtransportStream struct {
433 owner *C.git_smart_subtransport_stream

Callers

nothing calls this directly

Calls 4

UntrackMethod · 0.80
freeMethod · 0.80
FreeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…