]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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:54 +0000 (14:11 -0800)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Dec 2008 09:27:12 +0000 (10:27 +0100)
metze
(cherry picked from commit 1cc55ef88321927e87d5ce0c6b1edd98d2e6f936)

source/modules/vfs_streams_depot.c

index 3f5231a1449c669980c595c475193ca9b742507f..2096df4893aa535e6cffe203ae792a545fdaada5 100644 (file)
@@ -127,7 +127,6 @@ static char *stream_dir(vfs_handle_struct *handle, const char *base_path,
        const char *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) {