[PATCH 0/6] fix cache_path talloc stackframe leaks

David Disseldorp ddiss at samba.org
Mon Oct 6 10:21:12 MDT 2014


The following patch-set fixes a number of minor talloc stackframe leaks
and adds allocation failure checks where applicable.

Feedback appreciated.

Cheers, David

--

David Disseldorp (6):
      gencache: don't leak cache_path onto talloc tos
      gpo: don't leak cache_path onto talloc tos
      printing: don't leak cache_path onto talloc tos
      nmbd: don't leak cache_path onto talloc tos
      samlogon_cache: don't leak cache_path onto talloc tos
      lanman: don't leak cache_path onto talloc tos

 source3/lib/gencache.c           | 11 +++++++++++
 source3/libgpo/gpext/registry.c  | 20 +++++++++++++++-----
 source3/libgpo/gpext/scripts.c   | 24 +++++++++++++++++-------
 source3/libgpo/gpext/security.c  |  7 ++++++-
 source3/libsmb/samlogon_cache.c  |  7 ++++++-
 source3/nmbd/nmbd_serverlistdb.c |  7 +++++++
 source3/printing/printing.c      | 15 +++++++++++++--
 source3/printing/printing_db.c   | 15 ++++++++++++---
 source3/smbd/lanman.c            | 11 +++++++++--
 source3/utils/net_ads_gpo.c      | 16 ++++++++++++----
 10 files changed, 108 insertions(+), 25 deletions(-)


More information about the samba-technical mailing list