func (cfg *Config) Free() { C.git_config_free(cfg.git_config) }
func (c *Config) Free() { runtime.SetFinalizer(c, nil) C.git_config_free(c.ptr) }
// Free is used to deallocate the Config instance. It should be called to // finish the instance. You can use it with the defer statement: // // // get repository instance // config, err := repo.Config() // // check error // defer config.Free() func (c *Config) Free() { C.git_config_free(c.config) }