return 0;
}
-static void free_eventlog_info( void *ptr )
-{
- TALLOC_FREE(ptr);
-}
-
/********************************************************************
********************************************************************/
/* create the policy handle */
- if ( !create_policy_hnd
- ( p, hnd, free_eventlog_info, ( void * ) elog ) ) {
- free_eventlog_info( elog );
+ if ( !create_policy_hnd( p, hnd, elog ) ) {
+ TALLOC_FREE(elog);
return NT_STATUS_NO_MEMORY;
}