summaryrefslogtreecommitdiff
path: root/source3/smbd/map_username.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/map_username.c')
-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);