docker: fix connection leak on features check

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
pull/1776/head
Tonis Tiigi 2 years ago
parent c7c37c3591
commit bebd244e33
No known key found for this signature in database
GPG Key ID: AFA9DE5F8AB7AF39

@ -69,6 +69,7 @@ func (d *Driver) Features() map[driver.Feature]bool {
useContainerdSnapshotter = true useContainerdSnapshotter = true
} }
} }
c.Close()
} }
return map[driver.Feature]bool{ return map[driver.Feature]bool{
driver.OCIExporter: useContainerdSnapshotter, driver.OCIExporter: useContainerdSnapshotter,

Loading…
Cancel
Save