]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix a valgrind error
authorVolker Lendecke <vl@sernet.de>
Wed, 17 Dec 2008 17:14:09 +0000 (18:14 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 17 Dec 2008 17:25:32 +0000 (18:25 +0100)
Reported by naga_kishore_kommuri@yahoo.com

Derrel, please check!

Thanks,

Volker
(cherry picked from commit 3356b95f72e26ede4ab16a12c334be90b8b1a639)

source3/libsmb/libsmb_xattr.c

index ea2c46953c7a612a9993a86f263063a660dd3242..49830189116a661596bd2ffb1151a64fd6de24fc 100644 (file)
@@ -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 */