mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
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)
This commit is contained in:
parent
cc229d7042
commit
6d667ad4d3
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user