s3:streams_depot: fix valgrind bug lp_parm_const_string() doesn't talloc the default...
authorStefan Metzmacher <metze@samba.org>
Wed, 26 Nov 2008 12:56:31 +0000 (13:56 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 26 Nov 2008 22:02:25 +0000 (23:02 +0100)
metze

source/modules/vfs_streams_depot.c

index e45f771d77a809be5ace37f2f04f643f61dcbe54..eda0b99aad376c0e4539646b08e073e487edc453 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) {