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

source/rpc_server/srv_eventlog_nt.c

index 0e2bcf41269e4c3fcc4c11603c242f73aff54ca8..22c836d5d9856c8520609acac45f86ff5dad3e7a 100644 (file)
@@ -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",