mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3: Fix Coverity ID 710818 Resource leak
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
2ddc3a280e
commit
d1dccfbda6
@ -841,6 +841,7 @@ static NTSTATUS self_ref(TALLOC_CTX *ctx,
|
||||
|
||||
ref->alternate_path = talloc_strdup(ctx, dfs_path);
|
||||
if (!ref->alternate_path) {
|
||||
TALLOC_FREE(ref);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
ref->proximity = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user