Ejemplo n.º 1
0
func (cfg *Config) Free() {
	C.git_config_free(cfg.git_config)
}
Ejemplo n.º 2
0
Archivo: config.go Proyecto: wid/git2go
func (c *Config) Free() {
	runtime.SetFinalizer(c, nil)
	C.git_config_free(c.ptr)
}
Ejemplo n.º 3
0
Archivo: git.go Proyecto: 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)
}