diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-13 00:26:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:22 -0500 |
commit | bb0d6f04598ea8eb489137f2a23d98ad9f9a0eee (patch) | |
tree | 63a9ad003ac214925b329e2f6e807c7b3b66d98f /source3 | |
parent | 88dda37184d4282da1f9facf953003f0d1e82406 (diff) | |
download | samba-bb0d6f04598ea8eb489137f2a23d98ad9f9a0eee.tar.gz samba-bb0d6f04598ea8eb489137f2a23d98ad9f9a0eee.tar.bz2 samba-bb0d6f04598ea8eb489137f2a23d98ad9f9a0eee.zip |
r14268: Fix coverity error #204. Resource leak on error path.
Jeremy.
(This used to be commit 5f74e56b865e0bdde0e574cd5f97cf29b06ad155)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 1 |
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 57ca89379e..e86b36a5fe 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -6736,6 +6736,7 @@ static WERROR enumprinterdrivers_level1(fstring servername, fstring architecture architecture, version); if (!W_ERROR_IS_OK(status)) { SAFE_FREE(list); + SAFE_FREE(driver_info_1); return status; } fill_printer_driver_info_1(&driver_info_1[*returned+i], driver, servername, architecture ); |