1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-16 20:23:50 +03:00

Back to building. Now to test with insure.

Added some frees needed to stop memory leaks.
Jeremy.
This commit is contained in:
Jeremy Allison
-
parent c2099cfb03
commit eba31e4e80
8 changed files with 74 additions and 75 deletions

View File

@@ -498,14 +498,18 @@ static BOOL api_spoolss_setprinter(prs_struct *data, prs_struct *rdata)
}
r_u.status = _spoolss_setprinter(&q_u.handle, q_u.level, &q_u.info,
q_u.devmode_ctr, &q_u.secdesc_ctr,
q_u.devmode_ctr, q_u.secdesc_ctr,
q_u.command);
if(!spoolss_io_r_setprinter("",&r_u,rdata,0)) {
DEBUG(0,("spoolss_io_r_setprinter: unable to marshall SPOOL_R_SETPRINTER.\n"));
free_spoolss_q_setprinter(&q_u);
return False;
}
/* Free anything allocated in the unparse. */
free_spoolss_q_setprinter(&q_u);
return True;
}