summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2014-10-07 14:49:59 +0200
committerVolker Lendecke <vl@samba.org>2014-10-07 19:25:09 +0200
commitb376a822259aac3904d8bb47da77173d21e8a716 (patch)
treeef3a2ded943c05484bd691e81d8bb359bb61fef5
parentbdebf96cab66be3743ba82463ca852ed57c1ed7e (diff)
downloadsamba-b376a822259aac3904d8bb47da77173d21e8a716.tar.gz
printer_list: fix talloc tos leak of tdb record
Reported-by: Franz Pförtsch <franz.pfoertsch@brose.com> Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Oct 7 19:25:09 CEST 2014 on sn-devel-104
-rw-r--r--source3/printing/printer_list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/printing/printer_list.c b/source3/printing/printer_list.c
index 9a9fa0b9622..7868874a6a7 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;