From: Jeremy Allison Date: Tue, 11 Nov 2008 22:38:36 +0000 (-0800) Subject: Fix bug 5891] : smbd crashed when viewing the eventlog exported by "eventlog list" X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d54624159adc91f82f46e0635d59fc7d858db48f;p=thirdparty%2Fsamba.git Fix bug 5891] : smbd crashed when viewing the eventlog exported by "eventlog list" Don't mix TALLOC and SAFE_FREE(). Jeremy. --- diff --git a/source/rpc_server/srv_eventlog_nt.c b/source/rpc_server/srv_eventlog_nt.c index 0e2bcf41269..22c836d5d98 100644 --- a/source/rpc_server/srv_eventlog_nt.c +++ b/source/rpc_server/srv_eventlog_nt.c @@ -80,7 +80,7 @@ static bool elog_check_access( EVENTLOG_INFO *info, NT_USER_TOKEN *token ) /* get the security descriptor for the file */ sec_desc = get_nt_acl_no_snum( info, tdbname ); - SAFE_FREE( tdbname ); + TALLOC_FREE( tdbname ); if ( !sec_desc ) { DEBUG(5,("elog_check_access: Unable to get NT ACL for %s\n",