summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_nt.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-06-06 20:44:58 +0000
committerJeremy Allison <jra@samba.org>2000-06-06 20:44:58 +0000
commitd253db1b9a10644940650cc802feb2a509adbaed (patch)
tree5c0309d0f5206eaee7d9769f4ff7c1efc96dd82c /source3/rpc_server/srv_spoolss_nt.c
parent798670db20e67f0544fb8762a9c4813ec0bf5896 (diff)
downloadsamba-d253db1b9a10644940650cc802feb2a509adbaed.tar.gz
samba-d253db1b9a10644940650cc802feb2a509adbaed.tar.bz2
samba-d253db1b9a10644940650cc802feb2a509adbaed.zip
Memory leak fixes.
Jeremy. (This used to be commit 34b63896ab1543936d6b9b382ef6727a161b6bf2)
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 5793d5a137..b341dbe12a 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -3109,7 +3109,8 @@ uint32 _spoolss_fcpn(const POLICY_HND *handle)
Printer->notify.options=0;
Printer->notify.localmachine[0]='\0';
Printer->notify.printerlocal=0;
- safe_free(Printer->notify.option->ctr.type);
+ if (Printer->notify.option)
+ safe_free(Printer->notify.option->ctr.type);
safe_free(Printer->notify.option);
Printer->notify.option=NULL;