diff options
| author | Bjorn Neergaard <bneergaard@mirantis.com> | 2023-01-06 09:51:45 -0700 |
|---|---|---|
| committer | Bjorn Neergaard <bneergaard@mirantis.com> | 2023-01-06 13:23:05 -0700 |
| commit | d3778d65fac05b67ca58366cd5ba0661a5d5d2a0 (patch) | |
| tree | 73c34c9bff08ae076988b990daf72056e519b504 /daemon/graphdriver | |
| parent | 3208dcabdc8997340b255f5b880fef4e3f54580d (diff) | |
| download | docker-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.go | 2 |
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))) |
