Remove (*Config).Close()

This commit is contained in:
Kyle Lemons
2012-03-27 18:40:32 -07:00
parent be26b2f34b
commit 25c01a9f60
4 changed files with 2 additions and 42 deletions

View File

@@ -64,11 +64,6 @@ func main() {
// be set once the device is opened. All configuration references must be closed,
// to free up the memory in libusb.
cfgs, err := dev.Configurations()
defer func() {
for _, cfg := range cfgs {
cfg.Close()
}
}()
if err != nil {
log.Printf(" - configs: %s", err)
continue