[PATCH] printer_list: fix talloc tos leak of tdb record
David Disseldorp
ddiss at samba.org
Tue Oct 7 06:49:59 MDT 2014
Reported-by: Franz Pförtsch <franz.pfoertsch at brose.com>
Signed-off-by: David Disseldorp <ddiss at samba.org>
---
source3/printing/printer_list.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/source3/printing/printer_list.c b/source3/printing/printer_list.c
index 9a9fa0b..7868874 100644
--- a/source3/printing/printer_list.c
+++ b/source3/printing/printer_list.c
@@ -230,6 +230,7 @@ NTSTATUS printer_list_get_last_refresh(time_t *last_refresh)
ret = tdb_unpack(data.dptr, data.dsize,
PL_TSTAMP_FORMAT, &time_h, &time_l);
+ TALLOC_FREE(data.dptr);
if (ret == -1) {
DEBUG(1, ("Failed to un pack printer data"));
status = NT_STATUS_INTERNAL_DB_CORRUPTION;
--
1.8.4.5
More information about the samba-technical
mailing list