s3: TALLOC_FREE(command) correctly in map_username()
authorVolker Lendecke <vl@samba.org>
Fri, 9 Apr 2010 12:05:09 +0000 (14:05 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 13 Apr 2010 06:57:24 +0000 (08:57 +0200)
source3/smbd/map_username.c

index fde2a3c4d3a1da770d360cfa5ed0736ffdddf7e1..a3c4594726ab4b51d67c53ac299b321c07eebd13 100644 (file)
@@ -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);