summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_nt.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-02 07:10:26 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-02 07:10:26 +0000
commitf6dec4d551ba1054f9e936a973c2d9f90f84374f (patch)
tree03d426d4cf5647a384e0b44b457a1f8aa340e19f /source3/rpc_server/srv_spoolss_nt.c
parentba020b0612ee975df15ceaf2eabf0cc3f208dc3e (diff)
downloadsamba-f6dec4d551ba1054f9e936a973c2d9f90f84374f.tar.gz
samba-f6dec4d551ba1054f9e936a973c2d9f90f84374f.tar.bz2
samba-f6dec4d551ba1054f9e936a973c2d9f90f84374f.zip
fixed a memory leak
(This used to be commit d4743ec0be419565c805fbc5ba2680c6ad5fe36d)
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 2680c3a553..6a0323f850 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -3710,6 +3710,8 @@ uint32 _spoolss_addprinterdriver( const UNISTR2 *server_name,
if (add_a_printer_driver(driver, level)!=0)
return ERROR_ACCESS_DENIED;
+ safe_free(driver.info_3);
+
return NT_STATUS_NO_PROBLEMO;
}