From 5f079fe15855753f4d2291538459611e586336e2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 17 Dec 2008 18:14:09 +0100 Subject: Fix a valgrind error Reported by naga_kishore_kommuri@yahoo.com Derrel, please check! Thanks, Volker (cherry picked from commit 3356b95f72e26ede4ab16a12c334be90b8b1a639) --- source3/libsmb/libsmb_xattr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') 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 */ -- cgit