[krbdev.mit.edu #8432] git commit

Tom Yu via RT rt-comment at krbdev.mit.edu
Fri Sep 2 17:04:19 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.

(cherry picked from commit f53160634dd5de41c12701ade9e59d4b4dcd645b)

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



More information about the krb5-bugs mailing list