diff options
author | Volker Lendecke <vl@samba.org> | 2012-07-30 14:45:25 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-07-31 11:40:23 +0200 |
commit | d1dccfbda650081d33dc2924c480b033b386d1e4 (patch) | |
tree | 0367fc8916bde51294cd9f98608ad9af3ea339db | |
parent | 2ddc3a280e14858ead92deca153588fe9f454e76 (diff) | |
download | samba-d1dccfbda650081d33dc2924c480b033b386d1e4.tar.gz samba-d1dccfbda650081d33dc2924c480b033b386d1e4.tar.bz2 samba-d1dccfbda650081d33dc2924c480b033b386d1e4.zip |
s3: Fix Coverity ID 710818 Resource leak
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | source3/smbd/msdfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 97775d6a9d..b6ebaca1a1 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -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; |