diff options
author | Jeremy Allison <jra@samba.org> | 2000-09-11 23:43:44 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-09-11 23:43:44 +0000 |
commit | d836024b2816f37abd523afb3b2d4f2bfb130f0a (patch) | |
tree | d2e85f763ad99dc90a6909dcebc2cb530a48ed3f /source3/printing | |
parent | 692fe0cabfaf4b0e13083aa5d6fc9dddb4e5dd5b (diff) | |
download | samba-d836024b2816f37abd523afb3b2d4f2bfb130f0a.tar.gz samba-d836024b2816f37abd523afb3b2d4f2bfb130f0a.tar.bz2 samba-d836024b2816f37abd523afb3b2d4f2bfb130f0a.zip |
Fixed memory leaks found in enumprinterdrivers code.
Jeremy.
(This used to be commit e08b521559a824da09b0b73a04e462c573c42b06)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index a39ca39778..9e4f1c2fd5 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -1819,8 +1819,7 @@ uint32 get_a_printer_driver(NT_PRINTER_DRIVER_INFO_LEVEL *driver, uint32 level, { case 3: { - success=get_a_printer_driver_3(&(driver->info_3), - printername, + success=get_a_printer_driver_3(&driver->info_3, printername, architecture, version); break; } @@ -1829,7 +1828,8 @@ uint32 get_a_printer_driver(NT_PRINTER_DRIVER_INFO_LEVEL *driver, uint32 level, break; } - if (success == 0) dump_a_printer_driver(*driver, level); + if (success == 0) + dump_a_printer_driver(*driver, level); return (success); } |