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