From d3e9e83d7e3fd3ef3da1b64cb4181c0e6a46914d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 9 Apr 2010 14:05:09 +0200 Subject: s3: TALLOC_FREE(command) correctly in map_username() --- source3/smbd/map_username.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/smbd') 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); -- cgit