1
0
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:
Volker Lendecke 2012-07-30 14:45:25 +02:00 committed by Stefan Metzmacher
parent 2ddc3a280e
commit d1dccfbda6

View File

@ -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;