[krbdev.mit.edu #8432] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Wed Aug 10 13:51:32 EDT 2016


Fix memory leak in db2 policy DB initialization

osa_adb_init_db() maintains a static linked list mapping filenames to
lock structures.  Entries are never removed from the list; when their
reference counts hit 0, the lockfile is closed but the filename
remains allocated.  However, the filename is allocated each time the
lockfile is re-opened, leaking the old value.  Fix this leak by moving
filename initialization to entry creation.

https://github.com/krb5/krb5/commit/f53160634dd5de41c12701ade9e59d4b4dcd645b
Author: Greg Hudson <ghudson at mit.edu>
Commit: f53160634dd5de41c12701ade9e59d4b4dcd645b
Branch: master
 src/plugins/kdb/db2/adb_openclose.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)



More information about the krb5-bugs mailing list