summaryrefslogtreecommitdiff
path: root/daemon/graphdriver
diff options
context:
space:
mode:
authorBjorn Neergaard <bneergaard@mirantis.com>2023-01-06 09:51:45 -0700
committerBjorn Neergaard <bneergaard@mirantis.com>2023-01-06 13:23:05 -0700
commitd3778d65fac05b67ca58366cd5ba0661a5d5d2a0 (patch)
tree73c34c9bff08ae076988b990daf72056e519b504 /daemon/graphdriver
parent3208dcabdc8997340b255f5b880fef4e3f54580d (diff)
downloaddocker-d3778d65fac05b67ca58366cd5ba0661a5d5d2a0.tar.gz
graphdriver/btrfs: use free wrapper consistently
While the Cgo in this entire file is quite questionable, that is a task for another day. Signed-off-by: Bjorn Neergaard <bneergaard@mirantis.com>
Diffstat (limited to 'daemon/graphdriver')
-rw-r--r--daemon/graphdriver/btrfs/btrfs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/graphdriver/btrfs/btrfs.go b/daemon/graphdriver/btrfs/btrfs.go
index af2684331d..4373cc8b16 100644
--- a/daemon/graphdriver/btrfs/btrfs.go
+++ b/daemon/graphdriver/btrfs/btrfs.go
@@ -233,7 +233,7 @@ func subvolSnapshot(src, dest, name string) error {
var cs = C.CString(name)
C.set_name_btrfs_ioctl_vol_args_v2(&args, cs)
- C.free(unsafe.Pointer(cs))
+ free(cs)
_, _, errno := unix.Syscall(unix.SYS_IOCTL, getDirFd(destDir), C.BTRFS_IOC_SNAP_CREATE_V2,
uintptr(unsafe.Pointer(&args)))