From 88dda37184d4282da1f9facf953003f0d1e82406 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 13 Mar 2006 00:25:04 +0000 Subject: r14266: Fix coverity #205. Resource leak on error path. Jeremy. (This used to be commit 23d69758bbff9687ab508e12931a5a49691d7e0d) --- source3/rpc_server/srv_spoolss_nt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') 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); -- cgit