summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-06-03 00:53:07 +0000
committerJeremy Allison <jra@samba.org>2000-06-03 00:53:07 +0000
commit5a5540f87a89224397d791f4fe8093be214e1f15 (patch)
tree629c04e0026f5e90eca83858bc1e3f0aa8964ea2 /source3/rpc_server
parent0cc138993573a8337c335563ba3c5936d260f298 (diff)
downloadsamba-5a5540f87a89224397d791f4fe8093be214e1f15.tar.gz
samba-5a5540f87a89224397d791f4fe8093be214e1f15.tar.bz2
samba-5a5540f87a89224397d791f4fe8093be214e1f15.zip
rpc_client/cli_lsarpc.c: Removed unused variable.
rpc_server/srv_spoolss_nt.c: Fixed more memory leaks. smbd/nttrans.c: Fixed shadow variable problem. Jeremy. (This used to be commit f0a7540831181d3a47e7f8ce8be55a36a2f2aba1)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 393ba64130..0efcbdae1c 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -4110,6 +4110,7 @@ uint32 _spoolss_enumprinterdata(const POLICY_HND *handle, uint32 idx,
DEBUG(6,("final values: [%d], [%d]\n", *out_value_len, *out_data_len));
+ free_a_printer(&printer, 2);
return NT_STATUS_NO_PROBLEMO;
}
@@ -4120,9 +4121,12 @@ uint32 _spoolss_enumprinterdata(const POLICY_HND *handle, uint32 idx,
if (!get_specific_param_by_index(*printer, 2, idx, value, &data, &type, &data_len)) {
safe_free(data);
+ free_a_printer(&printer, 2);
return ERROR_NO_MORE_ITEMS;
}
+ free_a_printer(&printer, 2);
+
/*
* the value is:
* - counted in bytes in the request
@@ -4194,6 +4198,7 @@ uint32 _spoolss_setprinterdata( const POLICY_HND *handle,
else
status = add_a_printer(*printer, 2);
+ free_a_printer(&printer, 2);
return status;
}