From: Stefan Metzmacher Date: Mon, 1 Dec 2008 22:11:54 +0000 (-0800) Subject: s3:streams_depot: fix valgrind bug lp_parm_const_string() doesn't talloc the default... X-Git-Tag: samba-3.3.0rc2~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6295161f4ff52f487573ddbae1162ca115f9e566;p=thirdparty%2Fsamba.git s3:streams_depot: fix valgrind bug lp_parm_const_string() doesn't talloc the default value metze (cherry picked from commit 1cc55ef88321927e87d5ce0c6b1edd98d2e6f936) --- diff --git a/source/modules/vfs_streams_depot.c b/source/modules/vfs_streams_depot.c index 3f5231a1449..2096df4893a 100644 --- a/source/modules/vfs_streams_depot.c +++ b/source/modules/vfs_streams_depot.c @@ -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) {