summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-12-15 01:47:37 +0000
committerJeremy Allison <jra@samba.org>2000-12-15 01:47:37 +0000
commita18ade3fe0e823ceb83de2078f8f7e23e6c4fcf2 (patch)
tree49bb6d233e6bcbbb9ba278eff37ef77167574408 /source3/rpc_server
parent369f5fd1d7a6e6298bc3cbe01e3aaed0106f6cf4 (diff)
downloadsamba-a18ade3fe0e823ceb83de2078f8f7e23e6c4fcf2.tar.gz
samba-a18ade3fe0e823ceb83de2078f8f7e23e6c4fcf2.tar.bz2
samba-a18ade3fe0e823ceb83de2078f8f7e23e6c4fcf2.zip
Fixed memory leak in JOB_INFO_2 code.
Jeremy. (This used to be commit d0d31eead3367485bbac684d881839029010975d)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index b43501a56b..c2054143b7 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -4104,7 +4104,7 @@ static uint32 enumjobs_level2(print_queue_struct *queue, int snum,
new_smb_io_job_info_2("", buffer, &info[i], 0);
/* clear memory */
- safe_free(info);
+ free_job_info_2(info);
if (*needed > offered) {
*returned=0;
@@ -5692,8 +5692,7 @@ static uint32 getjob_level_2(print_queue_struct *queue, int count, int snum, uin
new_smb_io_job_info_2("", buffer, info_2, 0);
- free_dev_mode(info_2->devmode);
- safe_free(info_2);
+ free_job_info_2(info_2);
if (*needed > offered)
return ERROR_INSUFFICIENT_BUFFER;