Move to short lived TALLOC_CTX* for allocating printer
commit10b9976e0ab961dc34c9426f0a497e0f81a5e17f
authorGerald Carter <jerry@samba.org>
Tue, 30 Dec 2003 22:17:14 +0000 (30 22:17 +0000)
committerGerald Carter <jerry@samba.org>
Tue, 30 Dec 2003 22:17:14 +0000 (30 22:17 +0000)
tree3bee43ed1ca4d19c9902087798d888c6da0a854a
parent5d7a14166af3daf04b570fd5f66469d5db5a3500
Move to short lived TALLOC_CTX* for allocating printer
objects from the print handle cache.   Fixes bug that
caused smbd to consume large amounts of RAM when

(a) a printer handle was kept open over an extended
    period of time, and
(b) the client issued frequent requests that resulted
    in a call to get_a_printer()
source/printing/nt_printing.c