From 9fc3eb68e029c67bb876084558a1439a2e36f5d4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 9 Apr 2010 14:05:09 +0200 Subject: [PATCH] s3: TALLOC_FREE(command) correctly in map_username() --- source3/smbd/map_username.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/smbd/map_username.c b/source3/smbd/map_username.c index fde2a3c4d3a1..a3c4594726ab 100644 --- a/source3/smbd/map_username.c +++ b/source3/smbd/map_username.c @@ -108,6 +108,8 @@ bool map_username(fstring user) ret = smbrun(command, &fd); DEBUGADD(10,("returned [%d]\n", ret)); + TALLOC_FREE(command); + if ( ret != 0 ) { if (fd != -1) close(fd); -- 2.34.1