diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-03-12 10:47:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:18 -0500 |
commit | 71bf1be099e2afd989275da1d9fc9f668169a348 (patch) | |
tree | b4bd69089092f11b76896f8d4294f6ffd0ebef74 /source3/rpc_server | |
parent | f5fe12d71c02d81ce4cecfb5552cef74c62f291e (diff) | |
download | samba-71bf1be099e2afd989275da1d9fc9f668169a348.tar.gz samba-71bf1be099e2afd989275da1d9fc9f668169a348.tar.bz2 samba-71bf1be099e2afd989275da1d9fc9f668169a348.zip |
r14233: Fix Coverity bug # 206
(This used to be commit 0dc3030bce7bc7a58c509c70fe503a70db80b62d)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index af413b8b70..2424c46691 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -4823,8 +4823,10 @@ static WERROR getprinter_level_4(Printer_entry *print_hnd, int snum, RPC_BUFFER if((printer=SMB_MALLOC_P(PRINTER_INFO_4))==NULL) return WERR_NOMEM; - if (!construct_printer_info_4(print_hnd, printer, snum)) + if (!construct_printer_info_4(print_hnd, printer, snum)) { + SAFE_FREE(printer); return WERR_NOMEM; + } /* check the required size. */ *needed += spoolss_size_printer_info_4(printer); |