// Destroy destroys the underlying zsockT. func (s *Sock) Destroy() { C.zsock_destroy_checked(&s.zsockT, C.CString(s.file), C.size_t(s.line)) }
// Destroy destroys the underlying zsockT. func (s *Sock) Destroy() { cFile := C.CString(s.file) defer C.free(unsafe.Pointer(cFile)) C.zsock_destroy_checked(&s.zsockT, cFile, C.size_t(s.line)) }