git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2652f4c
)
Fix coverity CID: 594. Resource leak on error path.
author
Jeremy Allison
<jra@samba.org>
Wed, 13 Aug 2008 23:52:53 +0000
(16:52 -0700)
committer
Karolin Seeger
<kseeger@samba.org>
Tue, 19 Aug 2008 09:49:40 +0000
(11:49 +0200)
Jeremy.
(cherry picked from commit
60718a203c1d90dbdcdcb2eaf6b37f6135fb411b
)
source/rpc_server/srv_spoolss_nt.c
patch
|
blob
|
history
diff --git
a/source/rpc_server/srv_spoolss_nt.c
b/source/rpc_server/srv_spoolss_nt.c
index f80240042c67721195cc372001a59b0276c7cb96..635898a9d5769e12b8b07987767f561b00d4a5dd 100644
(file)
--- a/
source/rpc_server/srv_spoolss_nt.c
+++ b/
source/rpc_server/srv_spoolss_nt.c
@@
-5037,8
+5037,10
@@
static WERROR getprinter_level_7(Printer_entry *print_hnd, int snum, RPC_BUFFER
if((printer=SMB_MALLOC_P(PRINTER_INFO_7))==NULL)
return WERR_NOMEM;
- if (!construct_printer_info_7(print_hnd, printer, snum))
- return WERR_NOMEM;
+ if (!construct_printer_info_7(print_hnd, printer, snum)) {
+ result = WERR_NOMEM;
+ goto out;
+ }
/* check the required size. */
*needed += spoolss_size_printer_info_7(printer);