diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-07 18:44:52 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-08 22:29:54 +0100 |
commit | 84292022bf801112d2cb7f0f8512cf00079def20 (patch) | |
tree | 465b8f7c2f51769cf4a15d2b82e2ba4465bdfe40 /source3/rpc_server/srv_spoolss_nt.c | |
parent | 825500f5dafb848b95f5a5ea6595cc24f377bc3a (diff) | |
download | samba-84292022bf801112d2cb7f0f8512cf00079def20.tar.gz samba-84292022bf801112d2cb7f0f8512cf00079def20.tar.bz2 samba-84292022bf801112d2cb7f0f8512cf00079def20.zip |
Now that all policy_handle free_fn's are just TALLOC_FREE, dump free_fn
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 5e2cc05056..123cbf9335 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -227,11 +227,6 @@ static int printer_entry_destructor(Printer_entry *Printer) return 0; } -static void free_printer_entry(void *Printer) -{ - TALLOC_FREE(Printer); -} - /**************************************************************************** Functions to duplicate a SPOOL_NOTIFY_OPTION struct stored in Printer_entry. ****************************************************************************/ @@ -597,8 +592,8 @@ static bool open_printer_hnd(pipes_struct *p, POLICY_HND *hnd, char *name, uint3 } talloc_set_destructor(new_printer, printer_entry_destructor); - if (!create_policy_hnd(p, hnd, free_printer_entry, new_printer)) { - SAFE_FREE(new_printer); + if (!create_policy_hnd(p, hnd, new_printer)) { + TALLOC_FREE(new_printer); return False; } |