summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_shadow_copy2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index 8ac42e625c..3cf681fde8 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -664,9 +664,8 @@ static char *shadow_copy2_realpath(vfs_handle_struct *handle,
copy[gmt - fname + 1] = '\0';
DEBUG(10, ("calling NEXT_REALPATH with %s\n", copy));
- result = SMB_VFS_NEXT_REALPATH(handle, copy, resolved_path);
- TALLOC_FREE(copy);
- return result;
+ SHADOW2_NEXT(REALPATH, (handle, name, resolved_path), char *,
+ NULL);
}
SHADOW2_NEXT(REALPATH, (handle, name, resolved_path), char *, NULL);
}