The branch, master has been updated
       via  b376a82 printer_list: fix talloc tos leak of tdb record
      from  bdebf96 idl: Fix a typo

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit b376a822259aac3904d8bb47da77173d21e8a716
Author: David Disseldorp <[email protected]>
Date:   Tue Oct 7 14:49:59 2014 +0200

    printer_list: fix talloc tos leak of tdb record
    
    Reported-by: Franz Pförtsch <[email protected]>
    Signed-off-by: David Disseldorp <[email protected]>
    Reviewed-by: Volker Lendecke <[email protected]>
    
    Autobuild-User(master): Volker Lendecke <[email protected]>
    Autobuild-Date(master): Tue Oct  7 19:25:09 CEST 2014 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source3/printing/printer_list.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

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;


-- 
Samba Shared Repository

Reply via email to