summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2008-12-17 18:14:09 +0100
committerVolker Lendecke <vl@samba.org>2008-12-17 18:25:32 +0100
commit5f079fe15855753f4d2291538459611e586336e2 (patch)
treeb868dfaf1b7b80e8e78fce8b5f61713eebbe2149 /source3/libsmb
parent6b6977aaf25aa6b5fce49e7aa10711d16cb896e7 (diff)
downloadsamba-5f079fe15855753f4d2291538459611e586336e2.tar.gz
samba-5f079fe15855753f4d2291538459611e586336e2.tar.bz2
samba-5f079fe15855753f4d2291538459611e586336e2.zip
Fix a valgrind error
Reported by naga_kishore_kommuri@yahoo.com Derrel, please check! Thanks, Volker (cherry picked from commit 3356b95f72e26ede4ab16a12c334be90b8b1a639)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/libsmb_xattr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/libsmb_xattr.c b/source3/libsmb/libsmb_xattr.c
index ea2c46953c..4983018911 100644
--- a/source3/libsmb/libsmb_xattr.c
+++ b/source3/libsmb/libsmb_xattr.c
@@ -199,12 +199,13 @@ convert_sid_to_string(struct cli_state *ipc_cli,
return;
}
- TALLOC_FREE(ctx);
/* Converted OK */
slprintf(str, sizeof(fstring) - 1, "%s%s%s",
domains[0], lp_winbind_separator(),
names[0]);
+
+ TALLOC_FREE(ctx);
}
/* convert a string to a SID, either numeric or username/group */