diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 349f0a0b2f9..474e476f3d5 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -1086,6 +1086,7 @@ NTSTATUS check_reduced_name_with_privilege(connection_struct *conn, if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(priv_paths); } + TALLOC_FREE(dir_name); return status; }