summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-23 08:40:54 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-23 08:40:54 +0000
commit6d667ad4d31f9ec02e6cdf289b4958506b847f26 (patch)
tree09e8289f9592b1ab2fea30bcb83c252344b0f90e /source3/rpc_server
parentcc229d7042e4fc3ec9743ce37e5db0c0d4b97186 (diff)
downloadsamba-6d667ad4d31f9ec02e6cdf289b4958506b847f26.tar.gz
samba-6d667ad4d31f9ec02e6cdf289b4958506b847f26.tar.bz2
samba-6d667ad4d31f9ec02e6cdf289b4958506b847f26.zip
fixed another spoolss memory leak
I am falling in love with insure - it is finding _lots_ of memory problems (This used to be commit d9b4076293a4d37e1558ad63a3f522385ee3e521)
Diffstat (limited to 'source3/rpc_server')
-rwxr-xr-xsource3/rpc_server/srv_spoolss.c2
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss.c b/source3/rpc_server/srv_spoolss.c
index 8ae75eec6c..aaa87fe6ff 100755
--- a/source3/rpc_server/srv_spoolss.c
+++ b/source3/rpc_server/srv_spoolss.c
@@ -172,6 +172,8 @@ static BOOL api_spoolss_rfnpcnex(prs_struct *data, prs_struct *rdata)
r_u.status = _spoolss_rfnpcnex(&q_u.handle, q_u.change,
q_u.option, &r_u.info);
+ safe_free(q_u.option);
+
/* we always have a NOTIFY_INFO struct */
r_u.info_ptr=0x1;
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 52eaaafe6f..05af14e830 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -1575,8 +1575,6 @@ uint32 _spoolss_rfnpcnex( const POLICY_HND *handle, uint32 change,
if (option!=NULL)
safe_free(option->ctr.type);
- safe_free(option);
-
switch (Printer->printer_type) {
case PRINTER_HANDLE_IS_PRINTSERVER:
return printserver_notify_info(handle, info);