summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-09 14:05:09 +0200
committerVolker Lendecke <vl@samba.org>2010-04-09 14:08:00 +0200
commitd3e9e83d7e3fd3ef3da1b64cb4181c0e6a46914d (patch)
tree5ceb4a33d6ec834e5133712b72fd9bae38a32e42 /source3/smbd
parent5d04aadcb90c0272a2fe03a85ac2f91b99845c32 (diff)
downloadsamba-d3e9e83d7e3fd3ef3da1b64cb4181c0e6a46914d.tar.gz
samba-d3e9e83d7e3fd3ef3da1b64cb4181c0e6a46914d.tar.bz2
samba-d3e9e83d7e3fd3ef3da1b64cb4181c0e6a46914d.zip
s3: TALLOC_FREE(command) correctly in map_username()
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/map_username.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/map_username.c b/source3/smbd/map_username.c
index 24b4ddd271..38473e0736 100644
--- a/source3/smbd/map_username.c
+++ b/source3/smbd/map_username.c
@@ -108,6 +108,8 @@ bool map_username(struct smbd_server_connection *sconn, fstring user)
ret = smbrun(command, &fd);
DEBUGADD(10,("returned [%d]\n", ret));
+ TALLOC_FREE(command);
+
if ( ret != 0 ) {
if (fd != -1)
close(fd);