Example #1
0
func (cfg *Config) Free() {
	C.git_config_free(cfg.git_config)
}
Example #2
0
File: config.go Project: wid/git2go
func (c *Config) Free() {
	runtime.SetFinalizer(c, nil)
	C.git_config_free(c.ptr)
}
Example #3
0
File: git.go Project: fsouza/gogit
// 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)
}