From: | ghudson@mit.edu |
Subject: | git commit |
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@mit.edu>
Commit: f53160634dd5de41c12701ade9e59d4b4dcd645b
Branch: master
src/plugins/kdb/db2/adb_openclose.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)