summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-13 00:23:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:21 -0500
commit65eb331afcabe76ef6a5a688fb2709dad4369295 (patch)
tree0cdbcd10d5204a725d6ab782e9635b96f6f5308e /source3/rpc_server
parent15603e1c2fa110970f2a9866abe7692b84d58707 (diff)
downloadsamba-65eb331afcabe76ef6a5a688fb2709dad4369295.tar.gz
samba-65eb331afcabe76ef6a5a688fb2709dad4369295.tar.bz2
samba-65eb331afcabe76ef6a5a688fb2709dad4369295.zip
r14264: Fix coverity #207. Resource leak on error path.
Jeremy. (This used to be commit 0429b6e8c34a99d4b2a9a4849075ef2a5acadf9e)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 951757d4c8..d31b68d24e 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -6900,6 +6900,7 @@ static WERROR enumprinterdrivers_level3(fstring servername, fstring architecture
architecture, version);
if (!W_ERROR_IS_OK(status)) {
SAFE_FREE(list);
+ SAFE_FREE(driver_info_3);
return status;
}
fill_printer_driver_info_3(&driver_info_3[*returned+i], driver, servername);