Fix bug 5891] : smbd crashed when viewing the eventlog exported by "eventlog list"
authorJeremy Allison <jra@samba.org>
Tue, 11 Nov 2008 22:38:59 +0000 (14:38 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 11 Nov 2008 22:38:59 +0000 (14:38 -0800)
Don't mix TALLOC and SAFE_FREE().
Jeremy.

source3/rpc_server/srv_eventlog_nt.c

index 3c7469f3ef70f165da13a5e00f6378469558e719..eec5b1d736be965ca61e4f60856069c801bd980c 100644 (file)
@@ -79,7 +79,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",