s3:streams_depot: fix valgrind bug lp_parm_const_string() doesn't talloc the default...
authorStefan Metzmacher <metze@samba.org>
Mon, 1 Dec 2008 22:11:33 +0000 (14:11 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 1 Dec 2008 22:11:33 +0000 (14:11 -0800)
metze

source3/modules/vfs_streams_depot.c

index f8a8d97743a0558e851a4f65e9d25a0fc975d889..9e0a5895ea1fc4864c512849f89a49fd38b51e58 100644 (file)
@@ -128,7 +128,6 @@ static char *stream_dir(vfs_handle_struct *handle, const char *base_path,
        rootdir = lp_parm_const_string(
                SNUM(handle->conn), "streams_depot", "directory",
                tmp);
-       TALLOC_FREE(tmp);
 
        if (base_sbuf == NULL) {
                if (SMB_VFS_NEXT_STAT(handle, base_path, &sbuf) == -1) {