summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-13 00:25:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:21 -0500
commit88dda37184d4282da1f9facf953003f0d1e82406 (patch)
tree98fc51a69026465c826e8a926af85792dec61e09 /source3/rpc_server
parent65eb331afcabe76ef6a5a688fb2709dad4369295 (diff)
downloadsamba-88dda37184d4282da1f9facf953003f0d1e82406.tar.gz
samba-88dda37184d4282da1f9facf953003f0d1e82406.tar.bz2
samba-88dda37184d4282da1f9facf953003f0d1e82406.zip
r14266: Fix coverity #205. Resource leak on error path.
Jeremy. (This used to be commit 23d69758bbff9687ab508e12931a5a49691d7e0d)
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 d31b68d24e..57ca89379e 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -6818,6 +6818,7 @@ static WERROR enumprinterdrivers_level2(fstring servername, fstring architecture
architecture, version);
if (!W_ERROR_IS_OK(status)) {
SAFE_FREE(list);
+ SAFE_FREE(driver_info_2);
return status;
}
fill_printer_driver_info_2(&driver_info_2[*returned+i], driver, servername);