diff options
author | Jeremy Allison <jra@samba.org> | 2000-07-25 22:35:57 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-07-25 22:35:57 +0000 |
commit | bc22ae0b47bddd919b07e4c81ae12243c1f3226a (patch) | |
tree | 78027928f28d6ef081b2fb83836c028cc86b4ba7 /source3/rpc_server | |
parent | 904a24a0129b9d9c7492b7eaadbb1fb3e076eac5 (diff) | |
download | samba-bc22ae0b47bddd919b07e4c81ae12243c1f3226a.tar.gz samba-bc22ae0b47bddd919b07e4c81ae12243c1f3226a.tar.bz2 samba-bc22ae0b47bddd919b07e4c81ae12243c1f3226a.zip |
Fixed up error checking and move printer file code. Fixed a memory leak.
Jeremy.
(This used to be commit 5130dd0f8b80aed5fb3c0df290b627057cc9b825)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 53df5dfee4..30131482ac 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -2648,8 +2648,10 @@ uint32 status=0; status=get_a_printer_driver(&driver, 3, printer->info_2->drivername, architecture, version); DEBUG(8,("construct_printer_driver_info_3: status: %d\n", status)); - if (status != 0) + if (status != 0) { + free_a_printer(&printer,2); return ERROR_UNKNOWN_PRINTER_DRIVER; + } fill_printer_driver_info_3(info, driver, servername); @@ -3764,7 +3766,6 @@ uint32 _spoolss_enumprinterdrivers( UNISTR2 *name, UNISTR2 *environment, uint32 NEW_BUFFER *buffer, uint32 offered, uint32 *needed, uint32 *returned) { - int i; fstring *list = NULL; fstring servername; fstring architecture; |