Skip to content

Commit 2bb6646

Browse files
close opened fd (#493)
1 parent fbbb278 commit 2bb6646

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

engine/docker/container.go

+1
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ func (e *Engine) VirtualizationCopyTo(ctx context.Context, ID, target string, co
326326
if err != nil {
327327
return err
328328
}
329+
defer content.Close()
329330
return e.client.CopyToContainer(ctx, ID, filepath.Dir(target), content, dockertypes.CopyToContainerOptions{AllowOverwriteDirWithFile: true, CopyUIDGID: false})
330331
})
331332
}

0 commit comments

Comments
 (0)