From: Stefan Metzmacher Date: Mon, 1 Dec 2008 22:11:33 +0000 (-0800) Subject: s3:streams_depot: fix valgrind bug lp_parm_const_string() doesn't talloc the default... X-Git-Tag: samba-4.0.0alpha6~480^2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d53f82a1cf9a369ae3e657fea845f19313f06eb4;p=thirdparty%2Fsamba.git s3:streams_depot: fix valgrind bug lp_parm_const_string() doesn't talloc the default value metze --- diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index f8a8d97743a..9e0a5895ea1 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -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) {