spools: avoid leaking memory into the callers mem_ctx
authorRalph Boehme <slow@samba.org>
Mon, 22 Mar 2021 11:06:39 +0000 (12:06 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 1 Apr 2021 11:27:17 +0000 (11:27 +0000)
commit85b5657cbd685968045fcaad2e7d3323b902edc9
tree739393fa4a402fea9efe7f426ca46f529247961e
parent890cc945e338bbe3047bee45772330ec32feb5a2
spools: avoid leaking memory into the callers mem_ctx

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14675
CI: https://gitlab.com/samba-team/samba/-/merge_requests/1861

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 481176ec745c14b78fca68e01a61c83405a4b97b)
source3/rpc_server/spoolss/srv_spoolss_nt.c