s3: Fix Coverity ID 710827 Resource leak
authorVolker Lendecke <vl@samba.org>
Mon, 30 Jul 2012 12:41:42 +0000 (14:41 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 31 Jul 2012 09:40:22 +0000 (11:40 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/vfs.c

index 349f0a0b2f93bc5e49540113bfbf35c98af901d6..474e476f3d525d56aa498b37ba8869c9278909fb 100644 (file)
@@ -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;
 }